Advertisement
Mathieu1230

Untitled

Sep 27th, 2019
1,034
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  string test = innBestilling.utreiseDato.HasValue ? innBestilling.utreiseDato.Value.ToString("dd/MM/yyyy") : string.Empty;
  2.                     DateTime? dt = string.IsNullOrEmpty(test) ? (DateTime?)null : DateTime.Parse(test);
  3.  
  4.                     string test2 = innBestilling.utreiseDato.Value.ToString("dd/MM/yyyy");
  5.                     DateTime? dt = string.IsNullOrEmpty(test2) ? (DateTime?)null : DateTime.Parse(test2);
  6.  
  7.                     nyBestilling.UtreiseDato = dt;
Advertisement
RAW Paste Data Copied
Advertisement