Search Results for

    Show / Hide Table of Contents
    View Source

    Class DateTimeExtensions

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class DateTimeExtensions

    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
    Type Name Description
    DateTime dt
    DateTimeExtensions.DateTruncate truncateTo
    Returns
    Type Description
    DateTime
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • ToIsoString(DateTime)
      • TruncateTo(DateTime, DateTimeExtensions.DateTruncate)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX