I want to convert this date format (string) to DateTime in order to get the dayoftheweek() and hour(). I saw that there is a convert function, but I don't understand how to use it. Can you help me?
string dateTime_str = "15.03.2019 09:37";
DateTime DT = convert(dateTime_str, DATETIME_STR,FS_DATETIME);
return DT;