add datetime method