Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string test = innBestilling.utreiseDato.HasValue ? innBestilling.utreiseDato.Value.ToString("dd/MM/yyyy") : string.Empty;
- DateTime? dt = string.IsNullOrEmpty(test) ? (DateTime?)null : DateTime.Parse(test);
- string test2 = innBestilling.utreiseDato.Value.ToString("dd/MM/yyyy");
- DateTime? dt = string.IsNullOrEmpty(test2) ? (DateTime?)null : DateTime.Parse(test2);
- nyBestilling.UtreiseDato = dt;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement