The problem is, a date is an object, but should be stored at $value