473,396 Members | 1,992 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.

How to get the format of the date entered in the textbox

Hello i have problem in saving date value in the database. as i got values in the textboxes either throught the date picker which insert the date in format of "dd/MM/yyyy" . but user can also enter the date in his own format and i have to check before saving it in sql server whether it is in "MM/dd/yyyy" format or not else it gives error in sql server 2000.
Plz anyone help me out.
Mar 15 '07 #1
2 1456
Hello i have problem in saving date value in the database. as i got values in the textboxes either throught the date picker which insert the date in format of "dd/MM/yyyy" . but user can also enter the date in his own format and i have to check before saving it in sql server whether it is in "MM/dd/yyyy" format or not else it gives error in sql server 2000.
Plz anyone help me out.

u can validate it through javascript
in that u have to create a function to check the date format and as well as leap year validation
r u aware of javascript or not
Mar 15 '07 #2
kenobewan
4,871 Expert 4TB
Here is an article that may help:
ASP.NET FAQS
Mar 15 '07 #3

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

Similar topics

1
by: TN Bella | last post by:
Hello, I was looking through the older posts for a solution to this problem, but I am still confused on how to fix my problem. There are two dates on my form, one (txtInvDate) is entered by the...
2
by: pmclinn | last post by:
I have a textbox named "mydate" and I want to add an "onblur" event to it that will format the text in this format: dd-MMM-yy the data entry people use this format in the text box: dd/mm/yy...
2
by: serge calderara | last post by:
Dear all, I have a web application build with ASP 1.1 which has a querry form based on fields where users need to enter a date/time value for data collection. On my Web server the date time...
7
by: Richiep | last post by:
I am trying to get a UK format date of dd/mm/yyyy. Why does the following subroutine not return a valid date in a web form? The date returned is #12:00:00 AM# but the date I entered into the...
16
by: Mik | last post by:
I apologise if this post seems a little basic, but I am a newbie and have NO access knowledge. I have downloaded the Accounts Ledger from the Microsoft Website. It allows the user to review a...
3
by: obrienkev | last post by:
Hi, How do I ensure that the correct date format is entered into a textBox? Want to set Tag to false if incorrect format entered. This format: dd/mm/yyyy private void...
5
by: buntyindia | last post by:
There is a textbox in which date can be inserted manually or through calendar widget. format is "2007-12-05 12:12:0000" I have to write a script that Identify that the date if entered manually is...
4
by: =?Utf-8?B?ZGNoMw==?= | last post by:
Is there a way to conditionally format a dateTime field to produce on result if the value is 10/31/2008 12:00 AM (user didn't enter a time) and another result if the value is 10/31/2008 5:30 PM...
14
by: | last post by:
Hi, I program in asp.net. I have a date in TextBox in format "dd/MM/yyyy". I would like to validate if the date is realy correct. I used RegularExpressionValidator with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.