MATLAB: Cannot use datetime function on {’01 Nov 2019 14:39:50.365′}

date conversionMATLAB

Results in following error: Could not recognize the date/time format of '01 Nov 2019 14:39:50.365'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using
the 'Locale' parameter.
I've tried pretty much everything, what i'm after is converting the above date into juilian time. The juliandate function does not work on the date either.

Best Answer

s = '01 Nov 2019 14:39:50.365';
datetime(s,'InputFormat',"dd MMM yyyy HH:mm:ss.S")