date function bug fixed , now accept date and modifier