Date detection support

I added a test to see if the object being parsed is a Date object, and return the appropiate string. It was returning an empty object when a string was found