jquery - JavaScript Date Format Normalizing -


i'm creating html 5 form mobile. i'm using jquery-validate validate form. problem in relation date pickers across different phones. aren't consistent in date format store. how can detect format they're storing? once can detect it, can normalize format before post backend.

for example, iphone yyyy-mm-dd while samsung s3 mm/dd/yyyy. problem gets real fun when think have mm/dd/yyyy , others dd/mm/yyyy making 05/12/2012 either may 12th or dec 5th 2012. entail locale detection. there's library out there handles me already.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -