I have Day, Month, Year, Hour and Minute in different columns, how to combine in a datetime format (17-Oct-2019 00:00)?
Ältere Kommentare anzeigen
Please find the attached files
Thank you
Antworten (1)
Marcel Kreuzberg
am 11 Dez. 2019
0 Stimmen
try
Second = zeros(53715,1);
Year = Year+2000;
t = datetime(Year,Month,Day,Hour,Minute,Second,'Format','dd-MMM-yyyy hh:mm');
regards
Marcel
Kategorien
Mehr zu Dates and Time finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!