core/common/date-format.service.ts
Methods |
constructor(appStateService: AppStateService)
|
||||||
Parameters :
|
getDateFormat | ||||||||
getDateFormat(formattingOptions?: DateFormatOptions)
|
||||||||
Returns date format pattern based on locale and formatting syntax.
Parameters :
Returns :
string
A string containing the date format pattern for the specified locale |
shouldUseMeridianFormat | ||||||||
shouldUseMeridianFormat(locale)
|
||||||||
Determines whether a given locale should use 12-hour clock format with AM/PM.
Parameters :
Returns :
boolean
boolean indicating whether meridian format (AM/PM) should be used |