MATLAB Answers

I have Day, Month, Year, Hour and Minute in different columns, how to combine in a datetime format (17-Oct-2019 00:00)?

18 views (last 30 days)
Vishnu Dhakad
Vishnu Dhakad on 11 Dec 2019
Answered: Marcel Kreuzberg on 11 Dec 2019
Please find the attached files
Thank you

  0 Comments

Sign in to comment.

Answers (1)

Marcel Kreuzberg
Marcel Kreuzberg on 11 Dec 2019
try
Second = zeros(53715,1);
Year = Year+2000;
t = datetime(Year,Month,Day,Hour,Minute,Second,'Format','dd-MMM-yyyy hh:mm');
regards
Marcel

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags

Products


Release

R2018a