The DateField control is a MX component. It has no Spark
component.
It has a text field control and a calendar icon on its right side. When a user
clicks on this icon then pops up a DateChooser control. If the user does not
select a date the text field is blank. You can change a month by left or right
arrow.If you select a date, the date chooser closes and the text field displays
the selected date in date format.
The tag of DateField control is <MX:DateField>.
|
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s=" library://ns.adobe.com/flex/spark"xmlns:mx=" library://ns.adobe.com/flex/mx"> <s:Panel title="DateField Control Example" width="278" height="262"> <mx:DateField x="10" y="10"/> </s:Panel></s:Application> |
This is example for DateField control. Please choose a date from DateField control.
To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.