aspx_professional thread: CompareValidator not works with dateformat other than mm/dd/yy??
Compare validator picks up dates from the two text boxes to be compared
and the date format there is dd/MMM/yyyy HH:mm:ss ( eg.14-Jan-2003
00:00:00) and has to be presented in this format only. It is a non
editable field.
Regards
Rajesh
> Hi
Convert your existing date format to compare validator required format
and then compare.
Regards
Kalpesh
-----Original Message-----
From: RajeshN [mailto:RajeshN@i...]
Sent: Sunday, January 12, 2003 8:17 PM
To: ASPX_Professional
Subject: [aspx_professional] CompareValidator not works with dateformat
other than mm/dd/yy??
Hi,
I'm using a comparevalidator for comparing dates. But the
comparevalidator
compares dates only if it is in mm/dd/yy format. But the date format we
show
on the UI is of the form dd/MMM/yyyy HH:mm:ss . The compare validator
does
not understand this date format and the validation fails. Is there a way
to
change this so that the compare validator understands the new format.
I've
tried creating a new CultureInfo and setting the current thread to use
this
culture. But it didn't work. Any help is highly appreciated.
Thanks
Rajesh
---
Change your mail options at http://p2p.wrox.com/manager.asp or
to unsubscribe send a blank email to