Advertisement
Mathieu1230

Untitled

Sep 27th, 2019
2,892
0
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
Add Comment
Please, Sign In to add comment
Advertisement