andrewplummer / Sugar

A Javascript library for working with native objects.
https://sugarjs.com/
MIT License
4.54k stars 305 forks source link

format: 6 months from January 12th #643

Open kewisch opened 5 years ago

kewisch commented 5 years ago

I can parse 6 months from now, but I can't do 6 months from January 12th. It would be great if reference dates could be added instead of just "now". I'm not sure there is a way to do this with addFormat().

kewisch commented 5 years ago

Related, 6 months after January 12th would also be nice as an alias