datenum
Returns number of days since 01/01/0000 AD.
days=datenum(sdate)
days=datenum(sdate,form)
Inputs
sdate a string containing the date formatted as "MM/dd/yyyy", or according to the specified format.
form the format according to which the date has been formatted if it is not the default format.
Outputs
days The time interval, in days, between Jan 1,0000, and the given date.


Description
The format string should be specified according to the rules described in the documentaion for java.text.SimpleFormat class in the standard Java distribution.