Are you changing the format string for the date field, with the standard date field it displays with a "/" seperator, the fact you have no seperator would indicate that you are changing the display formatter(or is this an internationalization thing).
I have not changed anything:
this is my code:
<?xml version="1.0" encoding="utf-8"?>
<mx:DateField x="180" y="162"/>
I am using flash builder 4 and the sdk flex4.0.
With flex builder and the sdk 3.2, the component was ok with the slash between year, month and day.
But i need flex sdk 4.0 for the rest of my application.
I suppose that you use French locale along with your Flex application, right?
Yeah you are right, I am using french locale.
The default behaviour is buggy. I added formatString property and it resolved the problem.
Right, you've hit Adobe Flex SDK bug reported by me 9 month ago
https://bugs.adobe.com/jira/browse/SDK-23104 Please go and vote to get it fixed in Flex 4.5
For all readers of this topic, users of nb_NO, sv_SE, it_IT, nl_NL locales are also affected by this issue.
The default value of "dateFormat" for specified in SharedResources.properties file for those locales set is not yet supported by mx:DateField as reported in http://bugs.adobe.com/jira/browse/SDK-23075