This is a discussion on "Want Date Format in dd/mm/yyyy in ASP.Net With C#." within the ASP.NET Forum section. This forum, and the thread "Want Date Format in dd/mm/yyyy in ASP.Net With C#. are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Want Date Format in dd/mm/yyyy in ASP.Net With C#.
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Want Date Format in dd/mm/yyyy in ASP.Net With C#.
Dear Friend,
I am new in ASP.Net with c#. I want date in a dd/mm/yyyy format with validation in TextBox . Is anybody guide me how shall ? As I got date with dd/mm/yyyy but it will also accept 32/02/2005. Though Feb has less 30 days. Also when I compare two textbox it will not evalute properly. eg I want TextBox2 date greater then TextBox1. So I had used CompareValidator, & select type="date" but it will not evalute. Pl guide me. Thanking You, |
|
|
|
|||
|
Re: Want Date Format in dd/mm/yyyy in ASP.Net With C#.
Have you considered using the 'RegularExpressionValidator'?
If this is no god any you want to physically stop people from entering 32 into the textbox for the date, I would suggest either using the calendar object or a dropdownlist that populates on pageload/postback with the correct number of days. HTH |
![]() |
| Tags |
| date, format, ddmmyyyy, aspnet |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| JS date format | joe3dge | JavaScript Forum | 0 | May 21st, 2007 00:11 |
| Changing date format in date picker | AdRock | JavaScript Forum | 1 | Aug 1st, 2006 17:16 |
| How to format date/time from input box ? | kahpeng | Classic ASP | 1 | Mar 27th, 2006 05:08 |
| date format help please | charter | Databases | 3 | Jun 14th, 2004 20:09 |
| Date Format | ekendricks | Classic ASP | 3 | Sep 1st, 2003 17:03 |