There is a saying:
You have a problem. You write a regular expression to solve it. Now you have two problems.
Here is a complete working pipe that uses date-fns/format
. You should be able to adapt it easily to do what you want.
There is a saying:
You have a problem. You write a regular expression to solve it. Now you have two problems.
Here is a complete working pipe that uses date-fns/format
. You should be able to adapt it easily to do what you want.