View Source
Class DateTimeExtensions
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public static class DateTimeExtensions : object
Methods
View Source
ToIsoString(DateTime)
Returns the DateTime as an ISO formatted string that is globally expectable
Declaration
public static string ToIsoString(this DateTime dt)
Parameters
Type |
Name |
Description |
DateTime |
dt |
|
Returns
Type |
Description |
System.String |
|
View Source
TruncateTo(DateTime, DateTimeExtensions.DateTruncate)
Declaration
public static DateTime TruncateTo(this DateTime dt, DateTimeExtensions.DateTruncate truncateTo)
Parameters
Returns
Type |
Description |
DateTime |
|