We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 275a403 commit 8bbaaa7Copy full SHA for 8bbaaa7
packages/use-intl/src/core/createFormatter.tsx
@@ -147,7 +147,8 @@ export default function createFormatter({
147
}
148
149
function dateTime(
150
- /** If a number is supplied, this is interpreted as a UTC timestamp. */
+ /** If a number is supplied, this is interpreted as a UTC timestamp.
151
+ * If a string is supplied, this is interpreted as an ISO 8601 string. */
152
value: Date | number | string,
153
/** If a time zone is supplied, the `value` is converted to that time zone.
154
* Otherwise the user time zone will be used. */
0 commit comments