Skip to main content

Format-Date

📘 Developer Guide

With the Flyze Format-Date Service, you are able to easily format Date-Objects into valid locale Date-Strings.


🔁 Example

Runtime

🏗️ Methods

Method Description Parameters Returns
getDateTimeByFormat Gets a formatted date time date: Date, format: DateFormat, locale?: en | de, timeZone?: TimeZoneOffset Returns an formatted Date-Time String.

locale defaults to active language if no locale is provided

string
getDateTimeByCurrentLanguage Gets a formatted date time by current active language date: Date, format: DateFormat, timeZone?: TimeZoneOffset Returns an formatted Date-Time String in current active language.

string
getDateTimeByCurrentLanguage$ Gets a formatted date time by current active language as RXJS-Stream (Observable) date: Date, format: DateFormat, timeZone?: TimeZoneOffset Returns an formatted Date-Time String in current active language as Observable.

Observable<string>