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

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -