How do i convert Julian date to Month date?

Hello how do I convert 2018-107T18:49:39.164 to an output of 17 Apr 2018 18:49:39.164 in Matlab?

Answers (1)

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

Tags

Asked:

on 2 Oct 2018

Commented:

on 2 Oct 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!