                      :nameofthesecondparty [[v/required :message "Field is required"]]
                      :dateofinstitution [[v/required :message "Field is required"]]
                      :nameofpo [[v/required :message "Field is required"]]
-                     :dateofdecision [[v/required :message "Field is required"]]
+                     :dateofdecision [[v/required :message "Field is required"]
+                                      [v/datetime :message "Please enter valid date"]]
                      :title [[v/required :message "Field is required"]]
                      :khasranumber [[v/required :message "Field is required"]]
                      ;; :area [[v/required :message "Field is required"]]

                                [v/string  :message "Enter valid password"]])))

(defn input-element [id ttype data-set placeholder in-focus]
  ;;(js/console.log @data-set)
  [:input.form-control {:id id
                        :type ttype
                        :value (@data-set id)

(defn revenue-add [event]
  (secretary/dispatch! "/revenue/add"))


(defn render-revenue [revenues]
  [:div
   [:div {:class "box"}
