c# - Convert String to Date in .NET if my incoming date format is in YYYYMMDD -
What is the best way to convert from string to c # if my incoming date format YYYYMMDD
Ex: 20001106
date time Use ParseExact () Something like this:
string date = "20100102"; Datetime DateTime = Datetime Purse Axact (date, "YYMMMD", culture info. Inventive culture);
Comments
Post a Comment