Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 473 Bytes

AN0008.md

File metadata and controls

21 lines (15 loc) · 473 Bytes

AN0008: Use (MM) for formatting months instead of (mm)

Property Value
Id AN0008
Category Formatting
Default Severity Warning

Example

Code with Diagnostic

string date = DateTime.UtcNow.ToString("yyyy/mm/dd");

Code with Fix

string date = DateTime.UtcNow.ToString("yyyy/MM/dd");