Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ActionResult DateParser(string date)
- {
- string sDate = WrapStringInQuotes(date);
- DateTime dt = JsonConvert.DeserializeObject<DateTime>(sDate); // the dt i want have to be gmt +6
- }
- public string WrapStringInQuotes(string input)
- {
- return @"""" + input + @"""";
- }
Add Comment
Please, Sign In to add comment