Adding date attribute serializer.