daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top