mercredi 25 mai 2016

"String was not recognized as a valid DateTime in Asp.net

string JDate = "21/01/2016 3:47 PM";

when i convert jDate to DateTime, An error Occured

DateTime journeyDate = DateTime.ParseExact(JDate,"MM/dd/yyyy hh:mm:ss", CultureInfo.InvariantCulture);

String was not recognized as a valid DateTime.

Aucun commentaire:

Enregistrer un commentaire