| Programming and Data Types | ![]() |
Current Date and Time
The function date returns a string for today's date.
date
ans =
02-Oct-1996
The function now returns the serial date number for the current date and time.
now
ans =
729300.71
datestr(now)
ans =
02-Oct-1996 16:56:16
datestr(floor(now))
ans =
02-Oct-1996
| Date Formats | Obtaining User Input | ![]() |