a guest Jul 12th, 2018 51 Never
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 + @"""";
RAW Paste Data