# Question: Insert a dynamic Date/Time in BAQ Export filename?

**URL:** <https://www.epiusers.help/t/question-insert-a-dynamic-date-time-in-baq-export-filename/97180>\
**Category:** Epicor ERP 10\
**Tags:** dmt, baq, e10\
**Created:** [December 7, 2022, 3:48pm UTC](https://www.epiusers.help/t/question-insert-a-dynamic-date-time-in-baq-export-filename/97180 "2022-12-07T15:48:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JMyers56](https://www.epiusers.help/letter_avatar_proxy/v4/letter/j/ec9cab/32.png) [@JMyers56](https://www.epiusers.help/u/JMyers56)\
**Post date:** [December 7, 2022, 3:48pm UTC](https://www.epiusers.help/t/question-insert-a-dynamic-date-time-in-baq-export-filename/97180/1 "2022-12-07T15:48:33Z")

</div>

10.2.700

We have a need to create a BAQ export file in the following format: GLAccount\_Epicor\_YYYYMMDD\_HHMMSSttt.csv, with date and time of the export. I seem to remember there is a way to insert the date and possibly time into the filename dynamically, but not positive about it. Has anyone done this before, and if so what is the format of the filename? Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Mark\_Wonsil](https://www.epiusers.help/user_avatar/www.epiusers.help/mark_wonsil/32/51594_2.png) [@Mark\_Wonsil](https://www.epiusers.help/u/Mark_Wonsil)\
**Post date:** [December 7, 2022, 4:32pm UTC](https://www.epiusers.help/t/question-insert-a-dynamic-date-time-in-baq-export-filename/97180/2 "2022-12-07T16:32:39Z")

</div>

Some have used a PowerShell script to call the BAQSVC, so you have full control of the input and output parameters (including the filename). You should be able to search for an example here.

---

<div class="post-metadata">

**Author:** ![JMyers56](https://www.epiusers.help/letter_avatar_proxy/v4/letter/j/ec9cab/32.png) [@JMyers56](https://www.epiusers.help/u/JMyers56)\
**Post date:** [December 7, 2022, 5:03pm UTC](https://www.epiusers.help/t/question-insert-a-dynamic-date-time-in-baq-export-filename/97180/3 "2022-12-07T17:03:22Z")

</div>

Mark, have a followup question: How do you change the separator character in DMT Export from the commend line? Any idea?

---

<div class="post-metadata">

**Author:** ![Mark\_Wonsil](https://www.epiusers.help/user_avatar/www.epiusers.help/mark_wonsil/32/51594_2.png) [@Mark\_Wonsil](https://www.epiusers.help/u/Mark_Wonsil)\
**Post date:** [December 7, 2022, 5:19pm UTC](https://www.epiusers.help/t/question-insert-a-dynamic-date-time-in-baq-export-filename/97180/4 "2022-12-07T17:19:36Z")

</div>

Personally, I don’t use DMT to do Exports. I called the REST BAQSvc endpoint and then use standard PowerShell to control the filename, delimeter, etc. The DMT /? shows a delimeter flag you can try but I’m not sure if it’s only for imports.

 ![image](https://www.epiusers.help/uploads/default/original/3X/e/0/e0d91ad49f9d6e3c60dbcff3843f2e574ad1f6d7.png)
