Adding date conversion method