How do you convert DateTime Strings into Date and Time values (seconds or month,day,time) Trying to plot wind speed by time
2 views (last 30 days)
I am trying to plot wind speed (y-axis) by time (x-axis), however, the file that I was given has the time values stored as datetime strings and I am trying to convert these to time in seconds or the format of mm,dd, HH:MM:SS. Please help me!
Peter Perkins on 14 Mar 2022
Cam, what problem are you having. Your screenshot suggests you have a vector of datetimes. Use that in plot, or whatever charting command you are using. If you want the tick labels to have some particular form, change the time1.Format property. It looks like you might want that to be "MM,dd HH:mm:ss". Or maybe MMM.