Click here to Skip to main content
15,905,414 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Please Help me.. Pin
Paul Conrad21-Mar-08 8:18
professionalPaul Conrad21-Mar-08 8:18 
GeneralPlease Help me.. Pin
saravanan12july20-Mar-08 18:35
saravanan12july20-Mar-08 18:35 
GeneralRe: Please Help me.. Pin
Christian Graus20-Mar-08 19:12
protectorChristian Graus20-Mar-08 19:12 
GeneralRe: Please Help me.. Pin
Steve Echols20-Mar-08 19:17
Steve Echols20-Mar-08 19:17 
GeneralRe: Please Help me.. Pin
Christian Graus20-Mar-08 19:23
protectorChristian Graus20-Mar-08 19:23 
GeneralRe: Please Help me.. Pin
Steve Echols20-Mar-08 19:32
Steve Echols20-Mar-08 19:32 
GeneralRe: Please Help me.. Pin
Christian Graus20-Mar-08 19:40
protectorChristian Graus20-Mar-08 19:40 
GeneralRe: Please Help me.. Pin
Steve Echols20-Mar-08 19:54
Steve Echols20-Mar-08 19:54 
TryParse does work with just a time, it defaults to the current system date.

So this works, although it seems a bit complex:

string userText = "12:59";
DateTime now = DateTime.Now;
DateTime checkTime = new DateTime(now.Year, now.Month, now.Day, 12, 59, 0); // assuming 12:59am
DateTime userTime = DateTime.MinValue;
DateTime.TryParse(userText, out userTime);
if (userTime > checkTime)
{
// Valid
}
else
{
// Invalid
}


- S
50 cups of coffee and you know it's on!

GeneralRe: Please Help me.. Pin
Christian Graus20-Mar-08 20:41
protectorChristian Graus20-Mar-08 20:41 
GeneralRe: Please Help me.. Pin
Steve Echols21-Mar-08 18:59
Steve Echols21-Mar-08 18:59 
GeneralRe: Please Help me.. Pin
Vasudevan Deepak Kumar20-Mar-08 22:13
Vasudevan Deepak Kumar20-Mar-08 22:13 
Questionhow to solve:: Can not create new connection because in manual mode or distributed transaction Pin
koolprasad200320-Mar-08 16:54
professionalkoolprasad200320-Mar-08 16:54 
GeneralASP.NET C Sharp User Info Snag Pin
Xarzu20-Mar-08 15:55
Xarzu20-Mar-08 15:55 
GeneralRe: ASP.NET C Sharp User Info Snag Pin
Christian Graus20-Mar-08 20:43
protectorChristian Graus20-Mar-08 20:43 
QuestionHow to create a progress bar for button_click? Pin
vicky45720-Mar-08 11:34
vicky45720-Mar-08 11:34 
AnswerRe: How to create a progress bar for button_click? Pin
Christian Graus20-Mar-08 11:53
protectorChristian Graus20-Mar-08 11:53 
GeneralRe: How to create a progress bar for button_click? Pin
vicky45721-Mar-08 4:43
vicky45721-Mar-08 4:43 
AnswerRe: How to create a progress bar for button_click? Pin
harshGupta20-Mar-08 13:02
harshGupta20-Mar-08 13:02 
GeneralRe: How to create a progress bar for button_click? Pin
vicky45721-Mar-08 4:45
vicky45721-Mar-08 4:45 
GeneralI am using Richard Howard FTPClient library. Pin
Gus'O.20-Mar-08 11:18
Gus'O.20-Mar-08 11:18 
GeneralRe: I am using Richard Howard FTPClient library. Pin
Christian Graus20-Mar-08 11:52
protectorChristian Graus20-Mar-08 11:52 
GeneralRe: I am using Richard Howard FTPClient library. Pin
Vasudevan Deepak Kumar20-Mar-08 21:38
Vasudevan Deepak Kumar20-Mar-08 21:38 
QuestionDrop down question Pin
blitz2bleach20-Mar-08 9:31
blitz2bleach20-Mar-08 9:31 
GeneralRe: Drop down question Pin
led mike20-Mar-08 11:24
led mike20-Mar-08 11:24 
GeneralRe: Drop down question Pin
ashish bhakhar21-Mar-08 0:32
ashish bhakhar21-Mar-08 0:32 

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.