Title: Create Custom Invoice Number
Last modified: June 4, 2020

---

# Create Custom Invoice Number

 *  Resolved [mohejazi](https://wordpress.org/support/users/mohejazi/)
 * (@mohejazi)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/create-custom-invoice-number/)
 * Hi Everyone,
 * I want to make the invoice Number like the following Format= YYMMDD-HHMM-SS
 * what is the best way to do that?
 * thank you all 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/create-custom-invoice-number/#post-12942240)
 * Do you mean you want the entire invoice number to be without any ‘sequential’/
   generated part and just be the date in that format? Or do you want to use this
   as prefix/suffix?
 *  Thread Starter [mohejazi](https://wordpress.org/support/users/mohejazi/)
 * (@mohejazi)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/create-custom-invoice-number/#post-12944652)
 * I want to use this as prefix/suffix, I did it with the normal way and it’s work
   on the PDF directly with only PHP but on woocommerce Products table or inside
   the Product page I’m was not able to show the number in Format= YYMMDD-HHMM-SS
   that I used but I still see the Default Number Format
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/create-custom-invoice-number/#post-12945335)
 * You can add this in the prefix:
    `[invoice_date="ymd-Hi-s"]`
 * You can see the date/time codes you can use on this page: [https://www.php.net/manual/en/function.date.php](https://www.php.net/manual/en/function.date.php)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Create Custom Invoice Number’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

## Tags

 * [number](https://wordpress.org/support/topic-tag/number/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ewout](https://wordpress.org/support/users/pomegranate/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/create-custom-invoice-number/#post-12945335)
 * Status: resolved