Announcement

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

  • Changing the display of a date variable

    Hi all,

    I have a year-month variable which I have formatted with %tm. Is there a way to change the display from eg. "2010m1" to "2010Jan"? I cannot find an answer to this anywhere.

    Thank you!

  • #2
    Display format would be %tmCCYYMon.


    . scalar define ym = ym(2010, 1)

    . display in smcl as text %tmCCYYMon ym
    2010Jan

    .
    Code:
    help datetime_display_formats

    Comment


    • #3
      Thank you Joseph, very helpful.

      Have a great day!

      Comment

      Working...
      X