<% value = @object.send(property[:name]) %>
<%= text_field(property[:name], :class => "vDateField", :label => property[:pretty_name].capitalize, :value => value.respond_to?(:strftime) ? value.strftime("%Y-%m-%d") : nil) %>

<%= !property[:nullable?] ? "Required." : "Optional." %>