Table of Contents

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

dateTime DateTime

The DateTime to convert.

Returns

DateOnly

A DateOnly with just the date portion of the DateTime.