added session and DATE_FORMAT