I have Day, Month, Year, Hour and Minute in different columns, how to combine in a datetime format (17-Oct-2019 00:00)?
9 ビュー (過去 30 日間)
古いコメントを表示
Please find the attached files
Thank you
0 件のコメント
回答 (1 件)
Marcel Kreuzberg
2019 年 12 月 11 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Dates and Time についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!