Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
[ FlexSim 22.1.0 ]
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;
Solved! Go to Solution.