# Binding DateField selectedDate

**URL:** https://forum.kirupa.com/t/binding-datefield-selecteddate/259406
**Category:** flash
**Created:** [May 5, 2008, 12:52am UTC](https://forum.kirupa.com/t/binding-datefield-selecteddate/259406 "2008-05-05T00:52:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![chris12295](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chris12295/32/43_2.png) [@chris12295](https://forum.kirupa.com/u/chris12295)
#### Post date: [May 5, 2008, 12:52am UTC](https://forum.kirupa.com/t/binding-datefield-selecteddate/259406/1 "2008-05-05T00:52:33Z")

</div>

I have all the data loading just fine. The only problem is, the DateField does not show a selected date. If I put in an explicit number in the Date constuctor, it works. If I assign the selectedDate after a change event for the combobox it works. However, binding it isnt working. Any ideas?

```auto
<mx:Canvas id="Articles1" name="Articles1" label="Edit Article" width="100%" height="100%">
			<mx:ComboBox dataProvider="{rowsXML.row}" labelField="@tagline" x="72" y="44" width="270" id="editArticleSelectionData"/>
			<mx:Label x="10" y="10" text="Edit an Article" id="editArticleTitle" styleName="h1"/>
			<mx:Label x="10" y="93" text="Tagline: " id="editArticleTaglineLabel" styleName="formLabel" width="54"/>
			<mx:Label x="10" y="46" text="Article:" id="editArticleSelectionLabel" styleName="formLabel" width="54"/>
			<mx:Label x="289" y="93" text="Date:" id="editArticleDateLabel" styleName="formLabel" enabled="true"/>
			<mx:TextInput id="editArticleTaglineData" x="72" y="91" maxChars="255" text="{editArticleSelectionData.selectedItem.@tagline}"/>
			<mx:RichTextEditor x="10" y="121" title="Content:" width="780" height="648" id="editArticleContentData" htmlText="{editArticleSelectionData.selectedItem.@content}">
			</mx:RichTextEditor>
			<mx:DateField x="334" y="91" id="editArticleDateData" selectedDate="{new Date(editArticleSelectionData.selectedItem.@date)}">
			</mx:DateField>
			<mx:Button x="725" y="91" label="Cancel" id="cancelEditArticle"/>
			<mx:Button x="663" y="91" label="Save" id="saveEditArticle"/>
		</mx:Canvas>

```
