added custom date formatting functionality