'replacing moment data with date-fns
we are migrating from moment library to date-fns in the project on which I am working.
I am trying to find a soution to replace it with date-fns but I am not successful:
timezone: moment().format('Z')
If I replace it with:
timezone: format(new Date(),'Z')
Then It is not working. If anyone know how to solve it then please let me know. Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
