Table of Contents

Class OrganizationTimeZoneConverter

Namespace
Raytha.Application.Common.Utils
Assembly
Raytha.Application.dll
public class OrganizationTimeZoneConverter
Inheritance
OrganizationTimeZoneConverter
Inherited Members

Properties

DateFormat

public string DateFormat { get; }

Property Value

string

DateTimeFormat

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

ToDateFormat(DateTime?)

public string ToDateFormat(DateTime? date)

Parameters

date DateTime?

Returns

string

ToDateTimeFormat(DateTime?)

public string ToDateTimeFormat(DateTime? date)

Parameters

date DateTime?

Returns

string

UtcToTimeZone(DateTime)

public DateTime UtcToTimeZone(DateTime utc)

Parameters

utc DateTime

Returns

DateTime

UtcToTimeZoneAsDateFormat(DateTime?)

public string UtcToTimeZoneAsDateFormat(DateTime? utc)

Parameters

utc DateTime?

Returns

string

UtcToTimeZoneAsDateTimeFormat(DateTime?)

public string UtcToTimeZoneAsDateTimeFormat(DateTime? utc)

Parameters

utc DateTime?

Returns

string