Method | Description | |
---|---|---|
CheckDateRange ( string fromDate, string toDate ) : void | ||
IsoDateStringToDateTime ( string dateString ) : System.DateTime |
Changes yyyyMMdd.HHmmss formatted string to date. pads missing least significant digits (e.g. seconds or milliseconds) with 0s. |
|
is30DayMonth ( int month ) : bool | ||
isLeapYear ( int year ) : bool | ||
isValidDay ( int year, int month, int dy ) : bool | ||
isValidMonth ( int month ) : bool | ||
isWellFormedDatePart ( string dt ) : bool | ||
isWellFormedTimePart ( string dt ) : bool | ||
isWellFormedUtcDateTime ( string dt ) : bool | ||
toVistaTimestampString ( System.DateTime dateTime ) : string | ||
trimSeconds ( string timestamp ) : string | ||
trimTime ( string timestamp ) : string |
Removes the time portion (if present) of a date/time string of expected format. NOTE: this function doesn't check for well-formatted-ness of timestamp argument. If you need to check, use the |
|
zeroSeconds ( string timestamp ) : string |
Method | Description | |
---|---|---|
subtractSecond ( string timestamp ) : string |
public static CheckDateRange ( string fromDate, string toDate ) : void | ||
fromDate | string | |
toDate | string | |
return | void |
public static IsoDateStringToDateTime ( string dateString ) : System.DateTime | ||
dateString | string | |
return | System.DateTime |
public static is30DayMonth ( int month ) : bool | ||
month | int | |
return | bool |
public static isValidDay ( int year, int month, int dy ) : bool | ||
year | int | |
month | int | |
dy | int | |
return | bool |
public static isValidMonth ( int month ) : bool | ||
month | int | |
return | bool |
public static isWellFormedDatePart ( string dt ) : bool | ||
dt | string | |
return | bool |
public static isWellFormedTimePart ( string dt ) : bool | ||
dt | string | |
return | bool |
public static isWellFormedUtcDateTime ( string dt ) : bool | ||
dt | string | |
return | bool |
public static toVistaTimestampString ( System.DateTime dateTime ) : string | ||
dateTime | System.DateTime | |
return | string |
public static trimSeconds ( string timestamp ) : string | ||
timestamp | string | |
return | string |
public static trimTime ( string timestamp ) : string | ||
timestamp | string | yyyyMMdd.HHmmss or yyyyMMdd |
return | string |
public static zeroSeconds ( string timestamp ) : string | ||
timestamp | string | |
return | string |