Method | Description | |
---|---|---|
FromUnixTimestamp ( this unixTimestap ) : System.DateTime |
Convert unix timestamp to date
|
|
GetWeekNumber ( this date ) : int |
Get the week number of a date Use BaseDateTimeExtensions.GetDefaultCalendarRule() as default calendar rule Use BaseDateTimeExtensions.GetDefaultFirstWeekDay() as first week day
|
|
GetWeekNumber ( this date, CalendarWeekRule weekRule ) : int |
Get the week number of a date Use BaseDateTimeExtensions.GetDefaultFirstWeekDay() as first week day
|
|
GetWeekNumber ( this date, CalendarWeekRule weekRule, DayOfWeek firstWeekDay ) : int |
Get the week number of a date
|
|
GetWeekNumber ( this date, DayOfWeek firstWeekDay ) : int |
Get the week number of a date Use BaseDateTimeExtensions.GetDefaultCalendarRule() as default calendar rule
|
|
IsValidDate ( this strValue ) : bool |
Test if string value is a valid date value
|
|
IsValidDate ( this strValue, |
Test if string value is a valid date value
|
|
SetAsUtc ( this date ) : System.DateTime |
Convert date local to utc Only change date local, don`t convert date and time
|
|
ToTimezoneDate ( this date, |
Convert date to an especific timezone
|
|
ToTimezoneDate ( this date, |
Convert date to an especific timezone
|
|
ToTimezoneDate ( this date, |
Convert date to an especific timezone
|
|
ToTimezoneDate ( this date, string destinationTimeZoneName ) : System.DateTime |
Convert date to an especific timezone
|
|
ToTimezoneDate ( this date, string currentTimeZoneName, |
Convert date to an especific timezone
|
|
ToTimezoneDate ( this date, string currentTimeZoneName, string destinationTimeZoneName ) : System.DateTime |
Convert date to an especific timezone
|
|
ToUnixTimestamp ( this date ) : long |
Convert date to unix timestamp
|
|
ToUnixTimestamp ( this date, |
Convert date to unix timestamp
|
|
ToUnixTimestamp ( this date, string timezoneName ) : long |
Convert date to unix timestamp
|
|
ToUtc ( this date ) : System.DateTime |
Convert date to UtcDate
|
|
ToUtc ( this date, |
Convert date to UtcDate
|
|
ToUtc ( this date, string timezoneName ) : System.DateTime |
Convert date to UtcDate
|
|
TryParseDate ( this strValue ) : System.DateTime |
Convert string date to datetime Return BaseDateTimeExtensions.GetCurrentDateTime() on error
|
|
TryParseDate ( this strValue, |
Convert string date to datetime Return BaseDateTimeExtensions.GetCurrentDateTime() on error
|
|
TryParseDate ( this strValue, System.DateTime defaultValue ) : System.DateTime |
Convert string date to datetime
|
|
TryParseDate ( this strValue, System.DateTime defaultValue, |
Convert string date to datetime
|
public static FromUnixTimestamp ( this unixTimestap ) : System.DateTime | ||
unixTimestap | this | unix to convert |
return | System.DateTime |
public static GetWeekNumber ( this date ) : int | ||
date | this | Date to get week number |
return | int |
public static GetWeekNumber ( this date, CalendarWeekRule weekRule ) : int | ||
date | this | Date to get week number |
weekRule | CalendarWeekRule | Rule to calculate week number |
return | int |
public static GetWeekNumber ( this date, CalendarWeekRule weekRule, DayOfWeek firstWeekDay ) : int | ||
date | this | Date to get week number |
weekRule | CalendarWeekRule | Rule to calculate week number |
firstWeekDay | DayOfWeek | First day of week |
return | int |
public static GetWeekNumber ( this date, DayOfWeek firstWeekDay ) : int | ||
date | this | Date to get week number |
firstWeekDay | DayOfWeek | First day of week |
return | int |
public static IsValidDate ( this strValue ) : bool | ||
strValue | this | string value |
return | bool |
public static IsValidDate ( this strValue, |
||
strValue | this | string value |
culture | culture origin | |
dateTimeStyle | DateTimeStyles | date style to convert |
return | bool |
public static SetAsUtc ( this date ) : System.DateTime | ||
date | this | Date to set local |
return | System.DateTime |
public static ToTimezoneDate ( this date, |
||
date | this | date to convert |
destinationTimeZoneInfo | destination date timezone info | |
return | System.DateTime |
public static ToTimezoneDate ( this date, |
||
date | this | date to convert |
currentTimeZoneInfo | current date timezone info | |
destinationTimeZoneInfo | destination date timezone info | |
return | System.DateTime |
public static ToTimezoneDate ( this date, |
||
date | this | date to convert |
currentTimezoneInfo | current date timezone info | |
destinationTimeZoneName | string | destination date timezone name |
return | System.DateTime |
public static ToTimezoneDate ( this date, string destinationTimeZoneName ) : System.DateTime | ||
date | this | date to convert |
destinationTimeZoneName | string | destination date timezone name |
return | System.DateTime |
public static ToTimezoneDate ( this date, string currentTimeZoneName, |
||
date | this | date to convert |
currentTimeZoneName | string | current date timezone name |
destinationTimeZoneInfo | destination date timezone info | |
return | System.DateTime |
public static ToTimezoneDate ( this date, string currentTimeZoneName, string destinationTimeZoneName ) : System.DateTime | ||
date | this | date to convert |
currentTimeZoneName | string | current date timezone name |
destinationTimeZoneName | string | destination date timezone name |
return | System.DateTime |
public static ToUnixTimestamp ( this date ) : long | ||
date | this | date to convert |
return | long |
public static ToUnixTimestamp ( this date, |
||
date | this | date to convert |
timezoneInfo | current date timezone info | |
return | long |
public static ToUnixTimestamp ( this date, string timezoneName ) : long | ||
date | this | date to convert |
timezoneName | string | current date timezone name |
return | long |
public static ToUtc ( this date ) : System.DateTime | ||
date | this | date to convert |
return | System.DateTime |
public static ToUtc ( this date, |
||
date | this | date to convert |
timezoneInfo | current date timezone info | |
return | System.DateTime |
public static ToUtc ( this date, string timezoneName ) : System.DateTime | ||
date | this | date to convert |
timezoneName | string | current date timezone name |
return | System.DateTime |
public static TryParseDate ( this strValue ) : System.DateTime | ||
strValue | this | string to convert |
return | System.DateTime |
public static TryParseDate ( this strValue, |
||
strValue | this | string to convert |
culture | date culture | |
dateTimeStyle | DateTimeStyles | datetime style |
return | System.DateTime |
public static TryParseDate ( this strValue, System.DateTime defaultValue ) : System.DateTime | ||
strValue | this | string to convert |
defaultValue | System.DateTime | default value when invalid date |
return | System.DateTime |
public static TryParseDate ( this strValue, System.DateTime defaultValue, |
||
strValue | this | string to convert |
defaultValue | System.DateTime | default value when invalid date |
culture | date culture | |
dateTimeStyle | DateTimeStyles | datetime style |
return | System.DateTime |