Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to detect dates for tomorrow, yesterday, etc? #90

Open
robinvdvleuten opened this issue Feb 18, 2016 · 2 comments
Open

Comments

@robinvdvleuten
Copy link

Is it possible to detect dates for tomorrow, yesterday, etc? And is it hard to add them as plugin otherwise?

@NoelDavies
Copy link

Because yesterday, today and tomorrow are all contextual, this is difficult unless you add in a var for todays date, which could be overridden on initialisation as to give another date, but then you'd need something like moment.js to add/sub the date relevant to the string found.

@janwirth
Copy link
Contributor

janwirth commented Apr 1, 2016

@NoelDavies getting the current date in JS is rather trival. The hard part is matching the found date into a point in time as the year number may not actually be supplied. @robinvdvleuten whatever you get in the results is implemented already, today / tomorrow is not. But writing these plugins is not that hard, so give it a try maybe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants