Class OrganizationTimeZoneConverter
- Namespace
- Raytha.Application.Common.Utils
- Assembly
- Raytha.Application.dll
public class OrganizationTimeZoneConverter
- Inheritance
-
OrganizationTimeZoneConverter
- Inherited Members
-
Properties
public string DateFormat { get; }
Property Value
- string
public string DateTimeFormat { get; }
Property Value
- string
Default
public static OrganizationTimeZoneConverter Default { get; }
Property Value
- OrganizationTimeZoneConverter
TimeZone
public string TimeZone { get; }
Property Value
- string
Methods
From(string, string)
public static OrganizationTimeZoneConverter From(string timezone, string dateTimeFormat)
Parameters
timezone
string
dateTimeFormat
string
Returns
- OrganizationTimeZoneConverter
public string ToDateFormat(DateTime? date)
Parameters
date
DateTime?
Returns
- string
public string ToDateTimeFormat(DateTime? date)
Parameters
date
DateTime?
Returns
- string
UtcToTimeZone(DateTime)
public DateTime UtcToTimeZone(DateTime utc)
Parameters
utc
DateTime
Returns
- DateTime
public string UtcToTimeZoneAsDateFormat(DateTime? utc)
Parameters
utc
DateTime?
Returns
- string
public string UtcToTimeZoneAsDateTimeFormat(DateTime? utc)
Parameters
utc
DateTime?
Returns
- string