Announcement

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

  • Conversion of dates in STATA

    I have a date variable in STATA in the format 13jul2000. I want to convert it into a date with

    gen new_date = date(date, "DMY") format date %td

    However, the date is given in float instead of string. Is there any way to convert the variable into a string without changing the input?

  • #2
    it appears the date variable is already in the format, including display format, that you want; you can check this with -describe date-

    Comment

    Working...
    X