Method ToDateOnly
- Namespace
- YndigoBlue.Velocity.Utils
- Assembly
- YndigoBlue.Velocity.dll
ToDateOnly(DateTime)
Converts a DateTime to DateOnly, discarding the time component.
public static DateOnly ToDateOnly(this DateTime dateTime)
Parameters
dateTimeDateTimeThe DateTime to convert.
Returns
- DateOnly
A DateOnly with just the date portion of the DateTime.