Timestamp formatting
AnsweredIs it possible to format the "{//Generated}" timestamp to something a little more human-friendly? The default format is: 2019-06-04T16:06:02.9272327Z
Thanks!
-
Official comment
Hello Michael,
Thank you for your interest in our templates. I definitely understand how having those dates and times be more readable by humans. Allow me to introduce you to the function sw:ToShortDate() which will format your date as m_d_yyyy when saving. Implementing it is simple, simply use as follows in place of what you currently have:
{sw:ToShortDate(//Generated)}
Alternatively, if you need the time as well, use sw:ToShortDateTime()
If you have any advanced questions on templates I would be more than happy to open a ticket on your behalf.
Have a great day & happy shipping,
Robert K
ShipWorks | Technical Support Representative - Tier 2
One Memorial Drive, 20th Floor, Saint Louis, MO 63102
ShipWorks.com | 800.952.7784
Comment actions
Please sign in to leave a comment.
Comments
2 comments