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...
I came across this post in chinasmile. Nobody has answered his question yet. I couldn't figure out a way to do it with shell scripts, although