Dates are used in many fields of Computer Science and as well in
daily applications. From a simple Daily Attendance to a Comment
system, everywhere date plays a major role. This post also has a
date in order to tell the world about the Posted Date.
Validation of user-input dates manually by writing code can be
quite tricky and hence popular languages provide a user control
able to hold dates, only valid dates. Flex uses a DateField to
achieve this. DateField is a combination of a TextInput and a
Calendar icon, providing an interactive way of picking up Dates.
Clicking on the Calendar icon opens a DateChooser control, which
allows the user to select a desired date. This post discusses in
detail about using the Date Field effectively. The DateField
control is defined as mx.controls.DateField. To position at
desired location (x, y) in the window, the x and y properties
can be used. If no x and y are specified, then the DateField is
located at (0, 0). The DateField can be re-sized to any desired
dimension using t