-
Hi i did a quick search but cannot find the answer yet, in moment you can do What's the equivalent in date-fns please ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
There is not an equivalent with date-fns. You can achieve the same outcomes by making your own wrappers around |
Beta Was this translation helpful? Give feedback.
-
Have a followup question, say i set the TZ to be New York timezone in the .env, and node.js app imports dotenv package to use New York time zone. I know date-fns.format() generates output string in local timezone format, so in my case will it format into UK time or NY time ? @25747 |
Beta Was this translation helpful? Give feedback.
There is not an equivalent with date-fns. You can achieve the same outcomes by making your own wrappers around
date-fns-tz
functions, but it is not like using moment.