Skip to content

ToISO8601Date Method ​

Definition ​

  • Namespace: JASE.Extensions
  • Assembly: JASE.Primitives.dll

DateTime ToISO8601Date(DateTime input) ​

csharp
DateTime ToISO8601Date(DateTime input)

Returns a new DateTime with the same year, month, day, hour, minute, and second as the input, preserving the kind. Useful for stripping sub-second precision or millisecond noise.

Parameters ​

NameDescription
inputThe original DateTime.

Returns ​

A sanitized DateTime without millisecond detail.