Announcement

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

  • converting stata data formats

    I currently have date variable (lets call it date1 for example). I was able to format it as a date and it appears as follows.

    Code:
    gen date1 = date0
    format date1 %td
    
    01jan2000

    I want dates to appear like this with the month appearing in two digit numbers instead of words. I was also wanting to us / or some other symbol (e.g., - _) to separate the month day and year.

    Code:
    gen date1 = date0
    format date1 %td
    
    01/01/2000
Working...
X