Oops! Only works from 1902 to 2038 (with some modification)! So using date is not a good idea...But how to parse string using shell script? Perl would be a lot easier but usually it is not considered a shell...