reconstruct and day,week,month function