title: how to convert a date time string to an integer in bash shell
body: <p>Given a string like '2013-04-06', I want to convert it to a integer as we can do in Java.I have no idea how to do this in bash shell.Does anybody know how to do this?Thanks for any help.</p>