question

Kyle Y avatar image
1 Like"
Kyle Y asked Steven Hamoen answered

how to use DateTime class

  1. 2019-09-05 01:23:14
  2. I got a string like before, I am wondering how to convert to DateTime format and then retrieve Year(2019) and minute(23) directly? Is it possible? Thank you .
FlexSim 19.0.0
datetime
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered

@BJ C @Kyle Y

This is not the correct answer because there is function called "convert" which can convert a string into a datetime. Only issue is that it expects the time before the data (so 01:23:14 2019-09-05) but with the string class this is not very complex.


· 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.