Skip to content

Instantly share code, notes, and snippets.

@boldfacedesign
Created March 17, 2014 14:48
Show Gist options
  • Save boldfacedesign/9600646 to your computer and use it in GitHub Desktop.
Save boldfacedesign/9600646 to your computer and use it in GitHub Desktop.
C# make sure number has minimum of 2 didgits
n.ToString("D2")
http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment