extract formatting of dates