Hi,
How can I convert strings like "01/03/1997", e.i. of type "DD/MM/YYYY", to a new numeric variable for the month and one for the year?
I would like to have a variable with the value 3 (month) and one with the value 1997 (year).
Many thanks.
Related Posts with From string date "DD/MM/YYYY" to month and year variables
splitting a string into a new variableHi in my dataset, I have a variable called AllAvailableHoldersOwned which states the ownership data…
Merging 2 datasets with the same ID numberDear Members, I have been trying to merge 2 datasets. I have household sample and individual sample…
Assign value randomlyHi, I have a data of 5 clusters, each has 30 observations. I am asked to create a new variable, whi…
Yearly standard deviation of daily returnsHi Community, for a paper at university i need to calculate the annualized standard deviation of da…
asdasd …
Subscribe to:
Post Comments (Atom)
0 Response to From string date "DD/MM/YYYY" to month and year variables
Post a Comment