<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: dynamically set Date Picker error</title><link>https://www.infopathdev.com:443/forums/thread/13969.aspx</link><pubDate>Mon, 14 Nov 2005 17:03:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13969</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13969.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13969</wfw:commentRss><description>You have to manually format your date string following the ISO8601 standards. There might be a function in C that does this, but check out this thread for more details:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=995&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=995&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;</description></item><item><title>dynamically set Date Picker error</title><link>https://www.infopathdev.com:443/forums/thread/12674.aspx</link><pubDate>Mon, 14 Nov 2005 16:29:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12674</guid><dc:creator>Mario</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12674.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12674</wfw:commentRss><description>Hi all, I am setting the value of a Date picker control and it keeps putting the red box around it indicating an error, I am doing it on a code behind button which I need to set dynamically (an approval date I don't want users to set).  here is the code I am using:&lt;br /&gt;&lt;br /&gt;thisXDocument.DOM.selectSingleNode("//dfs:dataFields/d:ProjPreScreen/@DateSignedQA").text = CDate( strdate)&lt;br /&gt;&lt;br /&gt;If I take the CDate out, it still gets the same error, but the field displays the correct date in a correct format ie. 11/14/2005.&lt;br /&gt;&lt;br /&gt;What gives??  any help appreciated.</description></item></channel></rss>