Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
Generalsql server Urgent!!!! Pin
netJP12L4-Feb-08 8:54
netJP12L4-Feb-08 8:54 
GeneralRe: sql server Urgent!!!! Pin
snorkie4-Feb-08 9:35
professionalsnorkie4-Feb-08 9:35 
GeneralRe: sql server Urgent!!!!....Thanks You ROCKED........... Pin
netJP12L4-Feb-08 10:06
netJP12L4-Feb-08 10:06 
GeneralRe: sql server Urgent!!!! Pin
Not Active4-Feb-08 14:06
mentorNot Active4-Feb-08 14:06 
GeneralDate Pin
simworld4-Feb-08 6:55
simworld4-Feb-08 6:55 
GeneralRe: Date Pin
J$4-Feb-08 7:12
J$4-Feb-08 7:12 
GeneralRe: Date Pin
simworld4-Feb-08 7:32
simworld4-Feb-08 7:32 
GeneralRe: Date Pin
J$4-Feb-08 8:01
J$4-Feb-08 8:01 
The date comparison examples I gave before would be how you compare dates.

I'm guessing what you mean is that you want to make sure that the user enters a valid date and compare that to another date.

To do this you can implement code similar to this:
DateTime systemDate = DateTime.Today;<br />
DateTime userInputDate;<br />
// Try to determine if the user entered a valid date.  <br />
// If it is, userInputDate will have the date value<br />
bool bValidDate = DateTime.TryParse(textBox.Text, out userInputDate);<br />
if (!bValidDate)<br />
{<br />
  // Invalid date entered, alert user<br />
 MessageBox.Show(textBox.Text + " is not a valid date!");<br />
}<br />
else<br />
{<br />
  //Perform date comparison<br />
  if (systemDate < userInputDate)<br />
  {<br />
  }<br />
}

GeneralRe: Date Pin
PIEBALDconsult4-Feb-08 13:58
mvePIEBALDconsult4-Feb-08 13:58 
GeneralRe: Date Pin
DaveyM694-Feb-08 8:14
professionalDaveyM694-Feb-08 8:14 
GeneralRe: Date Pin
snorkie4-Feb-08 8:20
professionalsnorkie4-Feb-08 8:20 
GeneralRe: Date Pin
simworld5-Feb-08 7:42
simworld5-Feb-08 7:42 
GeneralHtml table to DataTable Object Pin
Nadia Monalisa4-Feb-08 5:39
Nadia Monalisa4-Feb-08 5:39 
GeneralRe: Html table to DataTable Object Pin
Gareth H4-Feb-08 6:56
Gareth H4-Feb-08 6:56 
GeneralConvert mdf and ldf for .bak file Pin
Thaer Hamael4-Feb-08 3:05
Thaer Hamael4-Feb-08 3:05 
GeneralRe: Convert mdf and ldf for .bak file Pin
Christian Graus4-Feb-08 12:32
protectorChristian Graus4-Feb-08 12:32 
GeneralIFilter Pin
justintimberlake4-Feb-08 2:11
justintimberlake4-Feb-08 2:11 
GeneralRe: IFilter Pin
Pete O'Hanlon4-Feb-08 3:04
mvePete O'Hanlon4-Feb-08 3:04 
Questioni want to insert a new node regarding this code.but insert is not working.. Pin
samidhas4-Feb-08 0:04
samidhas4-Feb-08 0:04 
GeneralRe: i want to insert a new node regarding this code.but insert is not working.. Pin
Guffa4-Feb-08 1:21
Guffa4-Feb-08 1:21 
GeneralRe: i want to insert a new node regarding this code.but insert is not working.. Pin
samidhas4-Feb-08 4:06
samidhas4-Feb-08 4:06 
GeneralRe: i want to insert a new node regarding this code.but insert is not working.. Pin
Guffa4-Feb-08 8:58
Guffa4-Feb-08 8:58 
GeneralRe: i want to insert a new node regarding this code.but insert is not working.. Pin
samidhas4-Feb-08 18:43
samidhas4-Feb-08 18:43 
Questionhow to insert a new node in a tree view programatically? Pin
samidhas3-Feb-08 23:32
samidhas3-Feb-08 23:32 
GeneralRe: how to insert a new node in a tree view programatically? Pin
Mircea Puiu3-Feb-08 23:45
Mircea Puiu3-Feb-08 23:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.