andrewplummer / Sugar

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

format: {date} + {relative period} #644

Open kewisch opened 5 years ago

kewisch commented 5 years ago

This may be a bit exotic, I would be happy if this were available with addFormat() only. I'd like to be able to type January 12th + 6 months to do a date calculation. It could be rephrased as 6 months after January 12th if #643 is fixed, but I don't see a way to allow date calculation via addFormat.

kewisch commented 5 years ago

Also January 12th - 6 months, to be complete.