Timestamp formatting




  • Official comment
    Robert K.

    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:


    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 Permalink
  • Avatar

    That's perfect, thank you!

    Comment actions Permalink

Please sign in to leave a comment.