Disappointed with the javascript date format? I am.... Use this function to convert a date object to a unix timestamp format