I have a form input with an id of \'date_trans\'. The format for that date input (which is validated server side) can be any of:
Date.js is a handy library for manipulating and formatting dates. It can help in this situation.