src/app/services/excel-date-formatter/excel-date-formatter.service.ts
An MS Excel date parser/formatter service.
Methods |
constructor()
|
Constructs the MS Excel date parser/formatter. ~constructor |
formatDate | ||||||||
formatDate(excelDate: number)
|
||||||||
Formats an Excel date.
Parameters :
Returns :
string
The formatted date. |
formatDates | ||||||||||||||||
formatDates(dateFields: string[], propertyName: string, propertyValue: any)
|
||||||||||||||||
Formats a date if found in a date property filter.
Parameters :
Returns :
any
The eventually formated property value. |
getJsDateValueFromExcel | ||||||||
getJsDateValueFromExcel(excelDate: any)
|
||||||||
Gets a javaScript-format date value from an Excel-format date.
Parameters :
Returns :
Date
The javaScript-format date. |
inTheFuture | ||||||
inTheFuture(date: number)
|
||||||
Calculate whether started date is in the future.
Parameters :
Returns :
boolean
|