Dear All,
I am a new user in Stata.
I am having a basic question and would kindly ask for your help. I want to change the data format from string to the date format (MMYYYY). I have tried this formula date(Date2, "MY") and then created the monthly format (Date3). However, the format is not what I expected.
Many thanks for your support,
Chi
Related Posts with Formatting and managing dates, from String to MMYYYY format
How to create a binary variable that identify whether another variable has duplicates in the dataset using Stata?*Please help me to delete this post because it is duplicated as above. Thank you! …
add a command and all generated variables and data lost.rename __merge __merge1 /* rename previous merge commands in order to merge tax+financial data with …
How to create a binary variable that identify whether another variable has duplicates in the dataset using Stata?*The dataset is laid out in longitudinal format where the patient id (pid) is the first column, and t…
Please Help with CodeHi All, I am trying to make a variable that identifies whether a person's second to last work histor…
Invalid name in foreach loopHi all, I'm trying to iterate over two variables, with the names "category" and "month_created". Th…
Subscribe to:
Post Comments (Atom)
0 Response to Formatting and managing dates, from String to MMYYYY format
Post a Comment