DateTime YYYYMMDD HHMMSS ConvertTo

조회 수: 6 (최근 30일)
em_++
em_++ 2021년 4월 29일
Hi everyone,
i have a question:
i have a .txt file with two collums, which are the date and the time in this format: YYYYMMDD HHMMSS
now i want to convert it to this format DD-MM-YYYY HH:MM:SS
I already managed to convert the date but not the time:
date = datetime(File.txt,'ConvertFrom','yyyymmmdd')
output:
03-Feb-2021 00:00:00
thanks for your help!!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by