Programming Previous page   Next Page

Conversions Between Date Formats

Functions that convert between date formats are shown below.

Function
Description
datenum
Convert a date string to a serial date number.
datestr
Convert a serial date number to a date string.
datevec
Split a date number or date string into individual date elements.

Here are some examples of conversions from one date format to another:


Previous page  Dates and Times Date String Formats Next page

© 1994-2005 The MathWorks, Inc.