code for saving created at date along with work data