Separate date and time
25 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have the datetime in a column as given in an attached example excel sheet. Between date and time there is an alphabet T. Can I get a help to seperate out date and time.
Thanks!
0 comentarios
Respuestas (1)
Steven Lord
el 21 de Sept. de 2021
dt = datetime('now') % Sample data
theTime = timeofday(dt)
theDate = dt - theTime % or
theDate2 = dateshift(dt, 'start', 'day')
2 comentarios
Ver también
Categorías
Más información sobre Dates and Time en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!