var inputDate = \'20/4/2010\'.split(\'/\'); var dateFormatted = new Date(parseInt(inputDate[2]), parseInt(inputDate[1]), parseInt(inputDate[0])); var expiryDate
Maybe this will be useful to you: http://code.google.com/p/datejs/wiki/APIDocumentation