MATLAB: Datenum with a.m. and p.m.

datenum timestamp a.m. p.m.

I have a data set with timestamps:
'11/5/2019 12 a.m. EST'
'11/10/2019 1 p.m. EST'
How can I convert these timestamps into a vector of date numbers?
thanks for the help.

Best Answer

Assuming there is ".m. EST" attached to each "timestamp" at the end. You can follow the steps:
Step-1 Replace ".m. EST" to just "m" (Hint : regexprep)
Step-2 Convert the output into the date numbers (Hint: datenum)
You should get the output with date numbers in a array. (Not sure what do mean by "continuous"?)