Announcement

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

  • Dates formatting question

    Hello,

    I have dates displayed in the standard numeric daily date (float) format like this: 11oct2018.

    How can I get the display to read like this: 10/11/2018?

    Apologies for asking a dates question. I tried my best to find the answer but haven't been able to.

    Thanks in advance,
    Reese

  • #2
    Well, if there's no standard way to do so, the best solution must be to create 3 variables via

    g day = day(datevar)
    g month = month(datevar)
    g year = year(datevar)

    then tostring and combine

    Comment


    • #3
      see
      Code:
      help datetime_display_formats

      Comment


      • #4
        Thanks Rich, that was helpful

        Comment

        Working...
        X