Forum Discussion

4m4d3u5's avatar
4m4d3u5
Contributor
7 years ago

Splitting strings

I have a string that is a time and a period that I want to parse; however, I want to parse this if the period is AM or PM. So the string for example with be: 8:40AM and I want to split that up into i...
  • 4m4d3u5's avatar
    4m4d3u5
    7 years ago

    I am pretty sure I have to format it then I can do what I want. I have to do aqConvert.DateTimeToFormatStr(timePeriod, "%c"), then I can get the string 8:40 AM, then I can split by space, then split by :