473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Date in dd/mm/yyyy format

maliksleo
115 100+
Hi
i am using this ajex
Expand|Select|Wrap|Line Numbers
  1. <asp:TextBox ID="TextBox6" runat="server" Width="180px" ValidationGroup="MKE" />
  2.         <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender6" runat="server"
  3.             TargetControlID="TextBox6" 
  4.             Mask="99/99/9999 99:99:99"
  5.             MessageValidatorTip="true"
  6.             OnFocusCssClass="MaskedEditFocus"
  7.             OnInvalidCssClass="MaskedEditError"
  8.             MaskType="DateTime"
  9.             AcceptAMPM="True"
  10.             ErrorTooltipEnabled="True" />
  11.         <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator6" runat="server"
  12.             ControlExtender="MaskedEditExtender6"
  13.             ControlToValidate="TextBox6"
  14.             IsValidEmpty="False"
  15.             EmptyValueMessage="Date and time are required"
  16.             InvalidValueMessage="Date and/or time is invalid"
  17.             Display="Dynamic"
  18.             TooltipMessage="Input a date and time"
  19.             EmptyValueBlurredText="*"
  20.             InvalidValueBlurredMessage="*"
  21.             ValidationGroup="MKE" />
  22.         <br />
  23.     </div>
  24.     <div class="demobottom" style="font-size: 9pt"></div>
but i am unable to change the date format as "dd/mm/yyyy" please help me out.
Jun 25 '09 #1
1 4392
Frinavale
9,735 Expert Mod 8TB
Umm....I'm not sure what the problem is because right now your MaskedEditExtender is formatted "##/##/#### ##:##:##" which means that it could be treated as mm/dd/yyyy 99:99:99 or it could be treated as dd/mm/yyyy 99:99:99.

What's the problem?

Have you considered using a CalendarExtender instead?
Jun 25 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Richard Hollenbeck | last post by:
I'm trying to write some code that will convert any of the most popular standard date formats twice in to something like "dd Mmm yyyy" (i.e. 08 Jan 1908) and compare the first with the second and...
6
by: Dario Di Bella | last post by:
Hi all, we have the following urgent issue affecting our development team. Initially we had one particular workstation that failed executing queries on a DB2 database, raising an invalid date...
3
by: Lyn | last post by:
Hi, I am developing a project in which I am checking for records with overlapping start/end dates. Record dates must not overlap date of birth, date of death, be in the future, and must not...
5
by: Macca | last post by:
Hi, I have a table which has a date/time field. I am storing them as follows :- 01/01/2005 11:25 01/01/2005 19:44 02/01/2005 05:04
7
by: James P. | last post by:
Hello there, In my asp.net page using VB, I have a date text field in mm/dd/yyyy format. When a date is entered, I'd like to validate it to make sure the date is greater than or equal to the...
12
by: Assimalyst | last post by:
Hi, I have a working script that converts a dd/mm/yyyy text box date entry to yyyy/mm/dd and compares it to the current date, giving an error through an asp.net custom validator, it is as...
9
by: Alok yadav | last post by:
i am using a webservice in which a method is serach. i use this method which accept a argument of date type in dd/MM/yyyy formate. i have a textbox which accept the date from the user, when i...
21
by: Darin | last post by:
I have an applicatoin that works 100% perfect when running on a machine setup for English (United States), but when I change it to Spanish (Mexico), the dates start giving me fits. THe reason is...
10
by: ARC | last post by:
Hello all, General question for back-end database that has numerous date fields where the database will be used in regions that put the month first, and regions that do not. Should I save a...
30
by: fniles | last post by:
On my machine in the office I change the computer setting to English (UK) so the date format is dd/mm/yyyy instead of mm/dd/yyyy for US. This problem happens in either Access or SQL Server. In the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
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...

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.