Appearance
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
| Name | Description |
|---|---|
input | The original DateTime. |
Returns
A sanitized DateTime without millisecond detail.