fix the problem of days excees 30/31 of a month