Fixed date attributes bug

There was a problem with date (datetime was ok) attributes.