Table of Contents

Class DateUtils

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains static methods related to DateTime.

public static class DateUtils
Inheritance
DateUtils

Properties

DateFormatJs

Gets DateTime format used in Java Script or in other situations.

Methods

GetAbsDistanceWithNow(long)

Subtracts ticks of Now with the specified timestamp and gets absolute value of the result.

GetAmPmDesignators(IFormatProvider?)

Gets the localized AM and PM designators from the specified format provider, or uses the current culture if the provider is null.

GetFormatInfo(IFormatProvider?)

Gets the DateTimeFormatInfo from the specified format provider, or uses the current culture if the provider is null.

GetNowInMilliseconds()

Gets current time in milliseconds.

GetNowInUnixMilliseconds()

Gets current time in milliseconds using ToUnixTimeMilliseconds().

GetTimeSeparator(IFormatProvider?)

Gets the localized time separator from the specified format provider, or uses the current culture if the provider is null.

HasAmPmDesignators(IFormatProvider?)

Returns true if the specified format provider has AM or PM designators and 12 hour time format can be used.

TicksFromMilliseconds(long)

Converts milliseconds to ticks.

TicksToMilliseconds(long)

Converts ticks to milliseconds.