got datetime working