Added support for converting dates.