validation - in javascript onchange i wish to convert date input numeric (01022013) to date format )01/02/2013) -
validation - in javascript onchange i wish to convert date input numeric (01022013) to date format )01/02/2013) -
i want create form user come in 01022013 format , onchange should convert date format . , onfocus should in numeric format. pl help.
try this:
'01022013'.replace(/(\d{2})(\d{2})(\d{4})/, '$1/$2/$3') // -> "01/02/2013"
javascript validation data-conversion
Comments
Post a Comment