New rule S6585: Don't hardcode the format provider when turning dates and times to string #7079
Labels
Area: C#
C# rules related issues.
Area: VB.NET
VB.NET rules related issues.
Type: New Rule
Implementation for a rule that HAS been specified.
Milestone
Implement new rule S6585: Don't hardcode the format provider when turning dates and times to string.
This rule should raise when
ToString
is called on aDateTime
,DateTimeOffset
,DateOnly
orTimeOnly
object, and the format is not of typeIFormatProvider
.The text was updated successfully, but these errors were encountered: