Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Prefix 0 to the date variable

    Hello,

    I have a date variable in the format DDMMYY. I want to prefix with a 0 for days 1,2,...,9. How can I do that?

  • #2
    See -help datetime display formats-

    Code:
    * replace my_date_var with your own date variable
    format %tdDDNNYY my_date_var

    Comment


    • #3
      Thank you, Leonardo.

      Comment

      Working...
      X