Separate date and time
10 ビュー (過去 30 日間)
古いコメントを表示
I have the datetime in a column as given in an attached example excel sheet. Between date and time there is an alphabet T. Can I get a help to seperate out date and time.
Thanks!
0 件のコメント
回答 (1 件)
Steven Lord
2021 年 9 月 21 日
dt = datetime('now') % Sample data
theTime = timeofday(dt)
theDate = dt - theTime % or
theDate2 = dateshift(dt, 'start', 'day')
参考
カテゴリ
Help Center および File Exchange で Calendar についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!