Hi,
I could use some help with dates.
I have set m.date to a date in this format mm/dd/yyyy
Now I want to create 2 new variables stadate & enddate where stadate is the first day of the month and enddate is the last day of the month associated with m.date.
Example
m.date = 05/15/2019
I would like
stadate = 05/01/2019
enddate = 05/31/2019
2nd Question How do I then modify enddate to return a date 1 year later (05/31/2020)
Thank you for your time.
Joe
I could use some help with dates.
I have set m.date to a date in this format mm/dd/yyyy
Now I want to create 2 new variables stadate & enddate where stadate is the first day of the month and enddate is the last day of the month associated with m.date.
Example
m.date = 05/15/2019
I would like
stadate = 05/01/2019
enddate = 05/31/2019
2nd Question How do I then modify enddate to return a date 1 year later (05/31/2020)
Thank you for your time.
Joe