473,407 Members | 2,315 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,407 software developers and data experts.

how to control/check Date datatype inputs in textobx?

Hello,

I have been adding a handler to the TextBox.Leave event to check if a value
that is entered in a Date Textbox is a Date. This works OK. But I am just
checking if there is anything built-In to VB2005 that does this. I have
already discovered several goodies that I had not previously been taking
advantage of.

Is there anything built-in to handle Date datatype checking for controls?

Thanks,
Rich
Jul 31 '06 #1
1 1299
Depends on how you define built-in I suppose

There is DateTime.Parse, DateTime.TryParse, DateTime.ParseExact and
DateTime.TryParseExact that you can use to convert a string to a date. If by
built-in you mean something like a DateTextBox, then no, there is no such
control. The closest would be DateTimePicker

/claes

"Rich" <Ri**@discussions.microsoft.comwrote in message
news:73**********************************@microsof t.com...
Hello,

I have been adding a handler to the TextBox.Leave event to check if a
value
that is entered in a Date Textbox is a Date. This works OK. But I am
just
checking if there is anything built-In to VB2005 that does this. I have
already discovered several goodies that I had not previously been taking
advantage of.

Is there anything built-in to handle Date datatype checking for controls?

Thanks,
Rich


Aug 1 '06 #2

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

Similar topics

8
by: pw | last post by:
Hi, I need to create a function in javascript to check or uncheck all checkboxes in a form. From what I understand, I can do this either by specifying the name of the check box fields such as: ...
8
by: Shyguy | last post by:
Is it possible to create a calendar that shows previous input data and also allows for input of new data?
1
by: James Radke | last post by:
Hello! I have a webpage (vb.net developed in Visual Studio.NET 2003) which has a repeater control which has as one of its columns an editable textbox. This textbox allows the user to enter a...
3
by: Moe Sizlak | last post by:
Hi, Can I check a checkbox by default based on the value returned from a database? for example if the value (dr("frm7value")) returned from a db field is "YES" how can I check the checkbox by...
3
by: | last post by:
For a given web form, I want to know what the +simplest+ way to add an attribute to all of a particular control type on that page. For example, I might want to add an onClick attribute to all...
4
by: Orchid | last post by:
How can I change a Date datatype to a Number datatype? For example, I want a date 10/31/2006 to show 1031 as Number datatype. But I don't want it becomes 39021. What formula should I use? ...
10
by: DontellTrevell via AccessMonster.com | last post by:
HELP!!....I need to calculate the numer of days elapsed between two field. But, the date format is YYYYMMDD. How can i accomplsh this? -- Dontell Trevell Message posted via AccessMonster.com...
3
by: mallz | last post by:
hi, i have to accept the date and time as inputs from my jsp form and store it in my table. but, the problem is that whn i use date datatype it displays time as well. i want the date data type...
5
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hallo, I have a radiobuttonlist control that is added on a custom Web User Control. This control has a property that exposes the SelectedIndex property of the embedded radiobuttonlist. When...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.