Added datetime format method