updated export function to pivot data and set default date format