Announcement

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

  • Year and date format

    Hi

    How can I create a new variable containing month and year from a date (days since 01jan1960) variable with %td format in Stata?

    Have Want
    01jan2022 Jan2022

    Kind regards Frank

  • #2
    Code:
    . di %td 22646
    01jan2022
    
    . di %tmMonCCYY mofd(22646)
    Jan2022
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      Perfect! Thans a lot Maarten Buis

      Comment

      Working...
      X