Guest User

Untitled

a guest
Jul 12th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. public ActionResult DateParser(string date)
  2. {
  3. string sDate = WrapStringInQuotes(date);
  4. DateTime dt = JsonConvert.DeserializeObject<DateTime>(sDate); // the dt i want have to be gmt +6
  5. }
  6. public string WrapStringInQuotes(string input)
  7. {
  8. return @"""" + input + @"""";
  9. }
Add Comment
Please, Sign In to add comment