Hello i have a Table with Dates in String Format like 2015-03-22 08:23:33.0 how can i split this column up into date and Time and convert the format ? Thanks a lot
1 回表示 (過去 30 日間)
古いコメントを表示
Hello Convert and split String DateTime in two Columms and convert Their Format
I have a DateTime columm like 2015-04-23 07:39:33.0 how can i Split this colummn up in two colummns and change the Format to something more useful than a string
THANKS
0 件のコメント
回答 (3 件)
Steven Lord
2016 年 10 月 19 日
If you're using release R2016b or later, you may be interested in creating a timetable from your table. There's a function to help with that conversion: see table2timetable.
0 件のコメント
Alexandra Harkai
2016 年 10 月 19 日
Function datevec could just be the one you're looking for: https://uk.mathworks.com/help/matlab/ref/datevec.html#inputarg_DateString
Also, see this topic on handling and converting dates: https://uk.mathworks.com/help/finance/handling-and-converting-dates.html
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!