Documentation

date

Current date string

Syntax

str = date

Description

str = date returns a string containing the date in the format, day-month-year, for example, 01-Jan-2014.

More About

expand all

Tips

  • To return a datetime scalar representing the current date, type:

    d = datetime('today')

See Also

| | | |

Was this topic helpful?