FormatDate (Nullable<DateTime> value, TimeZoneInfo timezone)
| Name | Type |
|---|---|
| value | System.Nullable<System.DateTime> |
| timezone |
TimeZoneInfo
Current user time zone. Use this.Context.Request.GetUserTimeZone() to use the auto-detected time zone. |
FormatDate (Nullable<DateTime> value, TimeZoneInfo timezone, Boolean useLongTimeFormat)
| Name | Type |
|---|---|
| value | System.Nullable<System.DateTime> |
| timezone |
TimeZoneInfo
Current user time zone. Use this.Context.Request.GetUserTimeZone() to use the auto-detected time zone. |
| useLongTimeFormat |
Boolean
Specifies whether to use short or long time format. |
FormatDate (DateTime value, TimeZoneInfo timezone)
| Name | Type |
|---|---|
| value | DateTime |
| timezone |
TimeZoneInfo
Current user time zone. Use this.Context.Request.GetUserTimeZone() to use the auto-detected time zone. |
FormatDate (DateTime value, TimeZoneInfo timezone, Boolean useLongTimeFormat)
| Name | Type |
|---|---|
| value | DateTime |
| timezone |
TimeZoneInfo
Current user time zone. Use this.Context.Request.GetUserTimeZone() to use the auto-detected time zone. |
| useLongTimeFormat |
Boolean
Specifies whether to use short or long time format. |
FormatDate (DateTimeOffset value, TimeZoneInfo timezone)
| Name | Type |
|---|---|
| value | DateTimeOffset |
| timezone |
TimeZoneInfo
Current user time zone. Use this.Context.Request.GetUserTimeZone() to use the auto-detected time zone. |
FormatTimeSpan (TimeSpan value)
| Name | Type |
|---|---|
| value | TimeSpan |
FormatTimeSpan (TimeSpan value, TimespanFormats format)
| Name | Type |
|---|---|
| value | TimeSpan |
| format |
Nucleus.ViewFeatures.FormatExtensions.TimespanFormats
Specifies output format. |
FormatTimeSpan (Nullable<TimeSpan> value)
| Name | Type |
|---|---|
| value | System.Nullable<System.TimeSpan> |
FormatTimeSpan (Nullable<TimeSpan> value, TimespanFormats format)
| Name | Type |
|---|---|
| value | System.Nullable<System.TimeSpan> |
| format |
Nucleus.ViewFeatures.FormatExtensions.TimespanFormats
Specifies output format. |