473,473 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Does CompareValidator work for the date in dd-mmm-yyyy format?

Hi,

I wish to validate the date a user has entered against the format
dd-mmm-yyyy
using the CompareValidator, but it does not work.

Does anybody have a simple solution please?

Many thanks in advance.

Regards,
Cyberlotus
Nov 22 '05 #1
4 3201
What is the locale for that format ? Try putting it in web.config

<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
culture="en-US"
uiCulture="en-US" />

"CyberLotus" wrote:
Hi,

I wish to validate the date a user has entered against the format
dd-mmm-yyyy
using the CompareValidator, but it does not work.

Does anybody have a simple solution please?

Many thanks in advance.

Regards,
Cyberlotus

Nov 22 '05 #2
What is the locale for that format ? Try putting it in web.config

<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
culture="en-US"
uiCulture="en-US" />

"CyberLotus" wrote:
Hi,

I wish to validate the date a user has entered against the format
dd-mmm-yyyy
using the CompareValidator, but it does not work.

Does anybody have a simple solution please?

Many thanks in advance.

Regards,
Cyberlotus

Nov 22 '05 #3
So I Guess try culture="en-GB"

"CyberLotus" wrote:
Hi,

I wish to validate the date a user has entered against the format
dd-mmm-yyyy
using the CompareValidator, but it does not work.

Does anybody have a simple solution please?

Many thanks in advance.

Regards,
Cyberlotus

Nov 22 '05 #4
So I Guess try culture="en-GB"

"CyberLotus" wrote:
Hi,

I wish to validate the date a user has entered against the format
dd-mmm-yyyy
using the CompareValidator, but it does not work.

Does anybody have a simple solution please?

Many thanks in advance.

Regards,
Cyberlotus

Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Piotr Pietrowski | last post by:
Hello everybody, I have a *big* problem. I thought its not that big problem for you professionals... Anyway, I have a begin date which has 3 dropdown boxes (day/Month/Year). The same for the...
1
by: edi | last post by:
Hi, Are there any differences between CompareValidator.ControlToCompare and CompareValidator.ControlToValidate? For example if I have TextBox controls: TextBox1 and TextBox2 what are the...
4
by: Axel Dahmen | last post by:
Hi, I've got the same problem as described below. No answer found yet. Can someone please help? (I'm using .NET 1.0 on my development machine and 1.1 on my webserver. Like Susanna, I only get...
0
by: gauthier | last post by:
Hi, I'm developing a web application available in multiple languages. When we switch language (via a drop down list), we switch the culture of the current thread: ...
3
by: THaskell | last post by:
I am using a comparevalidator to make sure that a date for a scheduling app is not in the past. <asp:CompareValidator id="cvSD" runat="server" ControlToValidate="txtStartDate"...
2
by: tshad | last post by:
I am trying to check the date of my field to check if it is greater that today, but I am getting an error. I am using : <asp:CompareValidator runat="server"...
1
by: R.A.M. | last post by:
Hello, I am learning ASP.NET 2.0 and I have a problem with CompareValidator control. On .aspx page I have a control: Date of birth: <asp:TextBox ID="BirthDate" runat="server"...
1
by: R.A.M. | last post by:
Hi, I am learning .NET 2.0 and I have a problem with asp:CompareValidator. On .aspx page I have: Birth date: <asp:TextBox ID="BirthDate" runat="server" ValidationGroup="BirthDate"/> and it...
1
by: Jason | last post by:
I have a textbox that I want to validate a textbox for a date like "01/01/2000 03:00PM" The below validates nicely for 01/01/2000. What's the easiest way to do this in asp.net 2.0 / vb.net? ...
1
by: Christian Heimes | last post by:
Rick King schrieb: datetime.date is a C extension class. Subclassing of extension classes may not always work as you'd expect it. Christian
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.