Class StiFunctionsDateTime
Methods
Static dateSerial
- dateSerial(year: number, month: number, day: number): DateTime
-
Parameters
-
year: number
-
month: number
-
day: number
Static day
-
Parameters
Returns number
Static dayOfWeek
- dayOfWeek(date: DateTime, loc?: boolean | string, upperCase?: boolean): string
-
Parameters
-
-
Default value loc: boolean | string = null
-
Default value upperCase: boolean = null
Returns string
Static dayOfYear
-
Parameters
Returns number
Static daysInMonth
- daysInMonth(yearOrDate: number | DateTime, month: number): number
-
Parameters
-
yearOrDate: number | DateTime
-
month: number
Returns number
Static daysInYear
- daysInYear(yearOrDate: number | DateTime): number
-
Parameters
Returns number
Static hour
-
Parameters
Returns number
Static minute
-
Parameters
Returns number
Static month
-
Parameters
Returns number
Static monthName
- monthName(date: DateTime, loc?: boolean | string, upperCase?: boolean): string
-
Parameters
-
-
Default value loc: boolean | string = null
-
Default value upperCase: boolean = null
Returns string
Static second
-
Parameters
Returns number
Static timeSerial
- timeSerial(hours: number, minutes: number, seconds: number): TimeSpan
-
Parameters
-
hours: number
-
minutes: number
-
seconds: number
Static toJapaneseDateString
- toJapaneseDateString(date: DateTime, format?: string): string
-
Parameters
-
-
Default value format: string = null
Returns string
Static weekOfMonth
-
Parameters
Returns number
Static weekOfYear
-
Parameters
Returns number
Static year
-
Parameters
Returns number