| | |
Date verification
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Dec 2007
Posts: 252
Reputation:
Solved Threads: 27
I am having a problem validating a date entered by user. This date must be later than todays date(at input time). I have attempted using the > (today) but this will not work if the the month is larger then input time. If you have any examples I would greatly appreciate it.
Example of what i have tried:
Example of what i have tried:
VB.NET Syntax (Toggle Plain Text)
if userdate < FormatDateTime(Today) then lblerrormessage.visible = True
Last edited by ProfessorPC; Jan 21st, 2008 at 3:51 am.
•
•
Join Date: Dec 2002
Posts: 461
Reputation:
Solved Threads: 56
Try this:
VB.NET Syntax (Toggle Plain Text)
Dim d As DateTime = CDate(TextBox1.Text) If (DateTime.Compare(Now, d) > 0) Then MessageBox.Show("Entered date has already happened. Please enter a future date.") End If
Wayne
It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
![]() |
Similar Threads
- System32/Config/ System missing on XP PRO and Home dual boot system (Windows NT / 2000 / XP)
- Age Verification Script (PHP)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- Pls help! - Desktop/Taskbar disappear - 7 instances of svchost (Windows NT / 2000 / XP)
- Direct 3d problems?? (Windows Software)
- Advanced verification on error checking (PHP)
- Phishing alert (Geeks' Lounge)
- PHP Consultants for speaking gig (Paid) (PHP)
Other Threads in the VB.NET Forum
- Previous Thread: Using custom DLL in vb.net application
- Next Thread: Add tabpages and controls to them dynamically.
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2008 access add arithmetic array assignment basic binary bing box button buttons c# center code combobox component connectionstring convert cpu data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net editvb.net excel file-dialog firewall folder google hardcopy image images isnumericfuntioncall listview login math memory mobile ms mssqlbackend mysql navigate net networking opacity output pan peertopeervideostreaming picturebox picturebox1 plugin port print printing printpreview problemwithinstallation project record reports" reuse save savedialog serial server sorting sql storedprocedure string temp text textbox timer toolbox updown upload useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vbnet view visual visualbasic visualbasic.net visualstudio web wpf





