DateHelper class
namespace: Serenity assembly: Serenity.Net.Core
Static class with common date utilities and constants
public static class DateHelper
Public Members
| name | description |
|---|---|
| static CurrentDateElementOrder { get; } | Returns one of "dmy", "ymd", "mdy" date element order depending on current culture. |
| static CurrentDateFormat { get; } | Gets default date format for current culture. |
| static CurrentDateTimeFormat { get; } | Gets default date time format for current culture. |
| static ISODateTimeFormatLocal | ISO Date and Time Format (up to milliseconds). |
| static ISODateTimeFormatUTC | ISO Date and Time Format (up to milliseconds). |
| static DateElementOrderFor(…) | Gets the date element order for specified short date time format. |
| static DateOrderString(…) | Gets date order string (one of "dmy", "ymd", "mdy") for a specified order. |
| static DefaultDateFormat(…) | Gets default date format for specified order. |
| static DefaultDateTimeFormat(…) | Gets default date time format for specified order. |
| static TryParseISO8601DateTime(…) | Tries to parse an ISO 8601 date-time string. |
See Also
- Source: DateHelper.cs