ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

feat(datetime): formatOptions property for Datetime

Open mapsandapps opened this issue 2 years ago • 0 comments

Issue number: Internal


What is the current behavior?

The Datetime header, Datetime time button, and Datetime Button have default date formatting that cannot be set by the developer.

What is the new behavior?

  • The developer can customize the date and time formatting for the Datetime header and time button
  • The developer can customize the date and time formatting for the Datetime Button
  • A warning will appear in the console if they try to provide a time zone (the time zone will not get used)
  • A warning will be logged if they do not include the date or time object for formatOptions as needed for the presentation of the Datetime

Does this introduce a breaking change?

  • [ ] Yes
  • [x] No

Other information

These changes have been reviewed in #29009 and #29059. This PR just adds them to the feature branch now that the separate tickets are complete.

mapsandapps avatar Feb 15 '24 22:02 mapsandapps