now() command in Matlab can return current date and time as a serial date number. It is counting how many days has passed A.D.
Remember there are 365.2422 days in a year.
In case of generating a string, use
Format 30 can be used in file names, while format 31 can be used in dates inserted in text. Or you can define your own format: