I have a date variable in string format and want to extract only the year. Below is mye date variable
"11-05-2017 09:25:32"
"18-05-2017 13:28:45"
I have tried using the substring function but it is somewhat difficult to understand how this works.
"11-05-2017 09:25:32"
"18-05-2017 13:28:45"
I have tried using the substring function but it is somewhat difficult to understand how this works.
Comment