<% value = eval("@instance.#{property.field}") %>
<%= text_field(property.name, :class => "vDateField", :label => property.field.capitalize.gsub('_', ' '), :value => value.respond_to?(:strftime) ? value.strftime("%Y-%m-%d %H:%M:%S") ? nil) %>

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