Title: Date on XML
Last modified: May 24, 2019

---

# Date on XML

 *  Resolved [actomendos](https://wordpress.org/support/users/actomendos/)
 * (@actomendos)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/date-on-xml/)
 * Hi,
 * On My Export i need date in this format d/m/Y but im having like this.
 * <date>2019-05-23 11:32:47</date>
 * I need it seperated.
    <date>13/12/2019</date> <time>12:25</time>
 * how can i change it?
    -  This topic was modified 6 years, 11 months ago by [actomendos](https://wordpress.org/support/users/actomendos/).
    -  This topic was modified 6 years, 11 months ago by [actomendos](https://wordpress.org/support/users/actomendos/).

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/date-on-xml/#post-11571858)
 * Hi [@actomendos](https://wordpress.org/support/users/actomendos/)
 * Are you exporting the “Date” element from the “Standard” data section? If so,
   here’s how you can do it:
    - Drag in the date element -> click it -> type “date” as the column name -> 
      type “d/m/Y” as the date format: [https://d.pr/i/DNEShQ](https://d.pr/i/DNEShQ)
    - Drag in the date element again -> click it -> type “time” as the column name-
      > type “H:i” as the date format: [https://d.pr/i/qcS9lB](https://d.pr/i/qcS9lB)
 *  Thread Starter [actomendos](https://wordpress.org/support/users/actomendos/)
 * (@actomendos)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/date-on-xml/#post-11572253)
 * It’s Woocommerce Order Export in Custom XML
 *     ```
       <?xml version="1.0" encoding="UTF-8"?>
       <SIPARISLER>
       	<!-- BEGIN LOOP -->
       	<SIPARIS>
       		<SIPARIS_NO>{Order ID}</SIPARIS_NO>
       		<PAZARYERI_KARGOKODU>{Shipping Method}</PAZARYERI_KARGOKODU>
       		<CariHesapKodu>{Order Key}</CariHesapKodu>
       		<CariHesapOzelKodu>{Order Key}</CariHesapOzelKodu>
       		<POSTA>{Customer Account Email Address}</POSTA>
       		<TARIH>2019-12-29</TARIH>
       		<sipariszaman>12:00:00</sipariszaman>
       		<ISKONTO>{Discount Amount (per coupon)}</ISKONTO>
       		<NET_TOPLAM>{Order Total}</NET_TOPLAM>
       		<TeslimAlici>{Shipping First Name}</TeslimAlici>
       		<TeslimAdresi>{Shipping Address 1}</TeslimAdresi>
       		<TeslimTelefon>{Billing Phone}</TeslimTelefon>
       		<teslimsekli>{Shipping Method}</teslimsekli>
       		<tasiyicifirma>{Shipping Method}</tasiyicifirma>
       		<teslimkod1>{kargo_firmasi}</teslimkod1>
       		<teslimkod4>{Shipping Postcode}</teslimkod4>
       		<teslimil>{Shipping City}</teslimil>
       		<teslimilce>{Shipping State}</teslimilce>
       		<faturaalici>{Billing First Name}</faturaalici>
       		<faturaAdresi>{Billing Address 1}</faturaAdresi>
       		<faturaTelefon>{Billing Phone}</faturaTelefon>
       		<faturavergino>{Billing Postcode}</faturavergino>
       		<faturavergidairesi>{Note Date}</faturavergidairesi>
       		<faturail>{Billing City}</faturail>
       		<faturailce>{Billing State}</faturailce>
       		<kargokodu>{kargo_takip_no}</kargokodu>
       		<ODEME_SEKLI>{Payment Method}</ODEME_SEKLI>
       		<kargo_odemesi>{Shipping Cost}</kargo_odemesi>
       		<SATIRLAR>
       			[my_output_items({SKU},{Quantity},{Item Total},{Item Tax})]
       		</SATIRLAR>
       	</SIPARIS>
       	<!-- END LOOP -->
       </SIPARISLER>
       ```
   
 * <TARIH>XXXXX</TARIH> is date.
    <sipariszaman>XXXXX</sipariszaman> is time.
    -  This reply was modified 6 years, 11 months ago by [actomendos](https://wordpress.org/support/users/actomendos/).
    -  This reply was modified 6 years, 11 months ago by [actomendos](https://wordpress.org/support/users/actomendos/).
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/date-on-xml/#post-11585829)
 * Hi [@actomendos](https://wordpress.org/support/users/actomendos/)
 * In that case, you’d need to use a PHP function: [https://d.pr/TD4D5j](https://d.pr/TD4D5j).
   For example:
 *     ```
       <TARIH>[date("d/m/Y", strtotime({Order Date}))]</TARIH>
       <sipariszaman>[date("H:i", strtotime({Order Date}))]</sipariszaman>
       ```
   
 * You can learn more about the date function here: [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 ‘Date on XML’ is closed to new replies.

 * ![](https://ps.w.org/wp-all-export/assets/icon-256x256.png?rev=2570162)
 * [WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel](https://wordpress.org/plugins/wp-all-export/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-export/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-export/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-export/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-export/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-export/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/date-on-xml/#post-11585829)
 * Status: resolved