diff --git a/platform/commonUI/general/res/templates/controls/datetime-field.html b/platform/commonUI/general/res/templates/controls/datetime-field.html
index e9b394c530..51bfe979b7 100644
--- a/platform/commonUI/general/res/templates/controls/datetime-field.html
+++ b/platform/commonUI/general/res/templates/controls/datetime-field.html
@@ -24,7 +24,10 @@
+ ng-class="{
+ error: textInvalid,
+ test: structure.validate && !structure.validate(ngModel[field])
+ }">