Improving date and number formatting using locale