dynamically set Date Picker error - InfoPath Dev
in

InfoPath Dev

dynamically set Date Picker error

Last post 11-14-2005 09:03 AM by Matt Faus. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-14-2005 08:29 AM

    • Mario
    • Not Ranked
    • Joined on 11-04-2005
    • Posts 15

    dynamically set Date Picker error

    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:

    thisXDocument.DOM.selectSingleNode("//dfs:dataFields/d:ProjPreScreen/@DateSignedQA").text = CDate( strdate)

    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.

    What gives?? any help appreciated.
  • 11-14-2005 09:03 AM In reply to

    Re: dynamically set Date Picker error

    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:

    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=995

    ---------------
    Matt Faus
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.