How do i convert Julian date to Month date?
Show older comments
Hello how do I convert 2018-107T18:49:39.164 to an output of 17 Apr 2018 18:49:39.164 in Matlab?
1 Comment
James Tursa
on 2 Oct 2018
107 is a "day of the year", not a "Julian date".
Answers (1)
dpb
on 2 Oct 2018
s='2018-107T18:49:39.164';
infmt=['uuuu-D''T''H:m:s.SSS'];
fmt='dd MMM yyyy HH:mm.ss.SSS';
>> t=datetime(s,'InputFormat',infmt,'Format',fmt)
t =
datetime
17 Apr 2018 18:49.39.164
>>
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!