extract dateformat