Oct 08, 2014, 5:03 AM
[CLOSED] DateField validation and typing dates in any formats
Hello Everyone,
I have a FormPanel that contains a number of DateFields.
FormPanel sends data to a server where I deserialize it using Json.
Clients want to type dates in three formats (yyyy-mm-dd, dd/mm/yyyy, dd-mm-yyyy) or select it from calendar.
Can I validate dates on client and send to the server a valid dates or '1900-01-01' (for example)?
Technically, I can write a javascript that grabs the data, validates it, transforms it and all the rest, but I am not sure that is the right way.
Any suggestions (with examples)?
Thank you.
I have a FormPanel that contains a number of DateFields.
FormPanel sends data to a server where I deserialize it using Json.
Clients want to type dates in three formats (yyyy-mm-dd, dd/mm/yyyy, dd-mm-yyyy) or select it from calendar.
Can I validate dates on client and send to the server a valid dates or '1900-01-01' (for example)?
Technically, I can write a javascript that grabs the data, validates it, transforms it and all the rest, but I am not sure that is the right way.
Any suggestions (with examples)?
Thank you.
Last edited by Daniil; Oct 10, 2014 at 7:58 AM.
Reason: [CLOSED]