Split datetime column data into two column

Hi, i have csv file and i want to split my 4th column (DateAndTime) into two column . one column should occupy date and other is time

回答 (1 件)

J. Alex Lee
J. Alex Lee 2020 年 12 月 21 日

0 投票

if you import it as a datetime variable, you can use datetime operations to render into whatever format you want, including one for date and one for time.

2 件のコメント

Rabia Hakim
Rabia Hakim 2020 年 12 月 22 日
No, i dont want to import.
J. Alex Lee
J. Alex Lee 2020 年 12 月 22 日
then you will not be able to manipulate in matlab...try going through the file manually and adding a comma between the date and the time.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeDates and Time についてさらに検索

タグ

質問済み:

2020 年 12 月 21 日

コメント済み:

2020 年 12 月 22 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by