Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Using the DebuggerDisplayAttribute to show the UTC and Local time of a DateTime property.
public class Issue
public Issue()
Created = DateTime.UtcNow;
[DebuggerDisplay("Local = {Created.ToLocalTime()}, UTC = {Created}")]
public DateTime Created { get; private set; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment