How can one write a condition datetime is not NaT?

1 view (last 30 days)
alpedhuez
alpedhuez on 19 Aug 2021
Commented: alpedhuez on 19 Aug 2021
How can one write a condition datetime is not NaT?

Accepted Answer

Steven Lord
Steven Lord on 19 Aug 2021
Use isnat.
T = datetime('today')
T = datetime
19-Aug-2021
isnat(T)
ans = logical
0

More Answers (0)

Tags

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!