Click here to Skip to main content
15,886,689 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: String was not recognized as a valid DateTime. Pin
Slacker00717-Aug-16 4:12
professionalSlacker00717-Aug-16 4:12 
GeneralRe: String was not recognized as a valid DateTime. Pin
#realJSOP17-Aug-16 4:26
mve#realJSOP17-Aug-16 4:26 
GeneralRe: String was not recognized as a valid DateTime. Pin
Slacker00717-Aug-16 4:33
professionalSlacker00717-Aug-16 4:33 
GeneralRe: String was not recognized as a valid DateTime. Pin
#realJSOP17-Aug-16 5:27
mve#realJSOP17-Aug-16 5:27 
GeneralRe: String was not recognized as a valid DateTime. Pin
ch.nagaraju18-Aug-16 18:34
ch.nagaraju18-Aug-16 18:34 
GeneralRe: String was not recognized as a valid DateTime. Pin
Slacker00718-Aug-16 22:27
professionalSlacker00718-Aug-16 22:27 
AnswerRe: String was not recognized as a valid DateTime. Pin
#realJSOP24-Aug-16 1:32
mve#realJSOP24-Aug-16 1:32 
AnswerRe: String was not recognized as a valid DateTime. Pin
#realJSOP17-Aug-16 2:33
mve#realJSOP17-Aug-16 2:33 
Actually (to build on Slacker's answer), the return value of the TryParse method is either true or false, and if true, the specified out parameter contains the parsed DateTime value. If the return value is false, the specified string was not in a recognizable DateTime string format.

Additionally, if you know for sure what the format of the string will be, you can use ParseExact.

For details about using either of these methods, google is, once again, your friend.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

GeneralRe: String was not recognized as a valid DateTime. Pin
Slacker00717-Aug-16 2:48
professionalSlacker00717-Aug-16 2:48 
Questiondgv printer Pin
Member 1268565414-Aug-16 16:13
Member 1268565414-Aug-16 16:13 
QuestionRe: dgv printer Pin
Richard MacCutchan14-Aug-16 21:15
mveRichard MacCutchan14-Aug-16 21:15 
AnswerRe: dgv printer Pin
Member 1268565414-Aug-16 22:46
Member 1268565414-Aug-16 22:46 
GeneralRe: dgv printer Pin
Pete O'Hanlon14-Aug-16 23:02
mvePete O'Hanlon14-Aug-16 23:02 
GeneralRe: dgv printer Pin
Member 1268565415-Aug-16 0:31
Member 1268565415-Aug-16 0:31 
Questionreading data from USB drive using memory address Pin
varadharajan8710-Aug-16 7:02
varadharajan8710-Aug-16 7:02 
AnswerRe: reading data from USB drive using memory address Pin
Afzaal Ahmad Zeeshan10-Aug-16 7:14
professionalAfzaal Ahmad Zeeshan10-Aug-16 7:14 
QuestionIsSubclassOf - Why does it do this? Pin
#realJSOP28-Jul-16 7:38
mve#realJSOP28-Jul-16 7:38 
AnswerRe: IsSubclassOf - Why does it do this? Pin
Maarten197717-Aug-16 3:41
Maarten197717-Aug-16 3:41 
GeneralRe: IsSubclassOf - Why does it do this? Pin
#realJSOP24-Aug-16 1:37
mve#realJSOP24-Aug-16 1:37 
GeneralRe: IsSubclassOf - Why does it do this? Pin
Maarten197724-Aug-16 3:22
Maarten197724-Aug-16 3:22 
QuestionCould not load file 'System.DirectoryServices.AccountManagement' Pin
Member 839936327-Jul-16 23:02
Member 839936327-Jul-16 23:02 
AnswerRe: Could not load file 'System.DirectoryServices.AccountManagement' Pin
Richard Deeming28-Jul-16 1:30
mveRichard Deeming28-Jul-16 1:30 
GeneralRe: Could not load file 'System.DirectoryServices.AccountManagement' Pin
ch.nagaraju17-Aug-16 1:11
ch.nagaraju17-Aug-16 1:11 
Questionneed help for fetching/sorting data in data grid view Pin
Member 1236748424-Jul-16 19:46
Member 1236748424-Jul-16 19:46 
SuggestionRe: need help for fetching/sorting data in data grid view Pin
Richard MacCutchan24-Jul-16 20:48
mveRichard MacCutchan24-Jul-16 20:48 

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.