Class DateTimeExtensions
- Namespace
- Payetools.Common.Extensions
- Assembly
- Payetools.Common.dll
Extension methods for instances of DateTime.
public static class DateTimeExtensions
- Inheritance
-
DateTimeExtensions
- Inherited Members
Methods
MiddayUtc(DateTime)
Gets an instance of DateTime from the supplied DateTime but with the time portion set to midday (12:00:00) UTC.
public static DateTime MiddayUtc(this DateTime dateTime)
Parameters
dateTime
DateTimeSource DateTime instance.
Returns
- DateTime
DateTime with the same date but time portion set to 12:00:00 UTC.