Convert date to datetime

5 visualizzazioni (ultimi 30 giorni)
SuzieChan
SuzieChan il 12 Apr 2020
Risposto: David Hill il 12 Apr 2020
Hi
Is it possible to convert 01/01/1990 to datetime format?
What is the code to do this?
Thank you.
Date = datetime(table{:,1},'ConvertFrom','datenum');
Time.Format = 'dd MMM yyyy , HH:mm:ss';

Risposta accettata

David Hill
David Hill il 12 Apr 2020
t = datetime(DateStrings,'InputFormat','dd/MM/yyyy');

Più risposte (0)

Categorie

Scopri di più su Dates and Time in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by