Hi All -
I have a data feed that provides me kickoff times in this format '8/9/2017 7:30:00 PM.' I'd like to display this as 7:30 PM. I was able to split the string between the data and time then use the left function to display just 7:30. My script is below.
dim ETTime as string
ETTime = Split(Text, " ", 2)(1)
if InStr(text, "PM")>0 then
Text = left(ETTime,4) & " PM {11}MST"
end if
My first problem is if the hour is a two digit number ie. 12:00 then my script won't work. My second problem is the times are listed in ET and i'm in MT so in my example I need the time to display as 5:30pm.
Any help on any portion of this would be great!! Thanks!