How to convert a DateTime<Iso> instance into a date-time suitable to pass to DateTimeFormatter::format()? #7758
rizzen-yazston
started this conversation in
General
Replies: 1 comment 3 replies
-
|
If you are using If you want to format datetimes (not zoned datetimes), you can use It would be possible to write an input type that: is backed by DateTime, can be passed to a CompositeFieldSet formatter, and raises a runtime error if the composite field set requires time zone fields. We just do not have such a type yet. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am definitely missing something important.
I managed to create the date-time formater, but when I pass
date_time_iso(&DateTime<Iso>) toformat(), I get this error, and I'm struggling to figure out what is missing.Beta Was this translation helpful? Give feedback.
All reactions