Allow datetime to be stored in text container

When date is stored in text container, dateForColumn return an incorrect date.

This patch check the container type to parse the date.