Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.next: add example on how to set custom date/time format #948

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

LordSimal
Copy link
Contributor

Users often don't know where/how to set a custom date/time format - as well as to use the ICU format instead of the PHP format.

Should we also add the mutable classes as well? I personall don't think so.

@LordSimal LordSimal added this to the 4.next milestone Apr 13, 2023
@markstory markstory merged commit cab3c1b into 4.next Apr 13, 2023
@markstory markstory deleted the 4.next-datetime-format branch April 13, 2023 15:15
@markstory
Copy link
Member

We're phasing mutable classes out so they don't need to be in the skeleton.


// set a custom date and time format
// see https://book.cakephp.org/4/en/core-libraries/time.html#setting-the-default-locale-and-format-string
// and https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer a block comment here so it is separate from the code example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants