Hi, I haven one problem. I have date in string variable and I need just a year.
I managed to get the year in a way: that i set new variable = DateTime.Parse(variable).ToString(“yyyy”), and that is working when i have double-digit moons, but when I have 01, 02, 03(month) I’m getting an error.
If you have a full date string like “ddMMyyyy”, you can use Year(date.ParseExact(variable, “ddMMyyyy”, nothing)).ToString.
Like this, you can also make sure you have a correct date.