MATLAB Answers

add zero time in timeseries date time column

3 views (last 30 days)
hafiz hashim
hafiz hashim on 18 Feb 2020
Commented: hafiz hashim on 18 Feb 2020
Hi, how can i insert 00:00:00 time in the start and end of the day.
01/01/2019'
'01/01/2019 00:01:00'
'01/01/2019 00:02:00' .
.
'01/01/2019 23:58:00'
'01/01/2019 23:59:00'
'02/01/2019'
'02/01/2019 00:01:00'
Thanks in advance for your help

  0 Comments

Sign in to comment.

Accepted Answer

Bhaskar R
Bhaskar R on 18 Feb 2020
Suppose dt is date time series, apply
dt.Format = 'dd/MM/yyy HH:mm:ss'

  1 Comment

hafiz hashim
hafiz hashim on 18 Feb 2020
i am using this
DateTime = datetime(S.textdata, 'InputFormat', 'dd/MM/yyyy HH:mm:ss')
but its started from 00:01:00 not from 00:00:00
Thanks

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Products


Release

R2018b