support one-day input by after & before

when you inputed same day to ‘:after’ & ‘:before’, it treat ‘:on’
inputed.