Closed TheLudd closed 8 years ago
its quite easy to add to formatting. How would it work in parsing ?
Don't really know if pasing is neccesary. Just thought it would be symmmetrical. But formatting is where I need it.
parse( "week WW, YYYY", "week 35, 2016") // ?
That would be one possible use and it should give the start of that week I suppose. But perhaps it is for the best to just do formatting and hold off parsing until there are actual requirements.
its easy enough to add to formatting You are very welcome to do a PR if you like.
https://github.com/cullophid/date-fp/blob/master/src/format.js
all you need to do is add a handler in tokenFunctions
maybe use http://momentjs.com/docs/#/displaying/format/ for reference
If you prefer I can do it over the weekend
Think I can do it today
Thanks, sorry I just forgot this...
Could this be added? Has it been discussed? I could perhaps take a look at it