added ability to localize dates using tokens