anchor.diff:  [[components.datefield.popupdatefield.malformed]]
   === Handling Malformed User Input
   
  -A user can easily input a malformed or otherwise invalid date or time.
  +A user can easily input a malformed or otherwise invalid date.
   [classname]#DateField# has two validation layers: first on the client-side and
   then on the server-side.
   
  
positive.code: endif::web[]
  
  The [classname]#DateField# component provides the means to display and input
  date and time. The field comes in two variations: [classname]#PopupDateField#,
  with a numeric input box and a popup calendar view, and
  [classname]#InlineDateField#, with the calendar view always visible. The
  [classname]#DateField# base class defaults to the popup variation.
  
  The example below illustrates the use of the [classname]#DateField# baseclass,
  which is equivalent to the [classname]#PopupDateField#. We set the initial time
  of the date field to current time by using the default constructor of the
  [classname]#java.util.Date# class.
  
  
  [source, java]
  
negative.code: .Custom Date Format for [classname]#PopupDateField#
  image::img/datefield-formatting.png[width=35%, scaledwidth=60%]
  
  The same format specification is also used for parsing user-input date,
  as described later.
  
  
  