date_comp
v2.0.0
Published
### super simple way to check if a date happened today or this week.
Downloads
1
Readme
date_comp
super simple way to check if a date happened today or this week.
today(query_date)
returns true if query_date today, false if not. pretty easy.
thisweek(query_date)
returns true if query_date falls into your current monday-sunday.
example: if today() returned the 11th of august 2016, you would be in a week where monday is the 8th and sunday the 14th. any august date from 11th to 14th would return true because it's in the current week. all other days return false.