Announcement

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

  • Extract year from datetime variable

    Hello all,

    I am trying to extract the years from a datetime variable and do not seem to find a way. I am attaching images of what I see on STATA. Can someone explain to me in a simple way what I should do?

    Thank you in advance!

  • #2
    your images are completely unreadable on my machine; please read and follow the advice in the FAQ; in the meantime, assuming you have your date data in Stata date form, see
    Code:
    help datetime##s8

    Comment

    Working...
    X