DateTime YYYYMMDD HHMMSS ConvertTo

6 vues (au cours des 30 derniers jours)
em_++
em_++ le 29 Avr 2021
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!!

Réponses (0)

Catégories

En savoir plus sur Dates and Time dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by