Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Cast DateTime to nullable DateTime
- var dateCast (DateTime)item.CompleteDate;
- // Send to String, convert to local culture,
- // Take substring up to first instance of space,
- string completedDate = dateCast.ToString(CultureInfo.CurrentCulture).Substring(0, dateCast.ToString(CultureInfo.CurrentCulture).IndexOf(' '));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement