How can I set date value to date data type node? - InfoPath Dev
in

InfoPath Dev

How can I set date value to date data type node?

Last post 07-02-2008 06:50 AM by Anuma. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-02-2008 05:47 AM

    How can I set date value to date data type node?

    Hi,

    I have some problem about set value to node in main datasource.

    How can I set date value to date data type node by managed code?

    Thank you very much.

    インフォパス ● デべロッパー
  • 07-02-2008 06:50 AM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 525

    Re: How can I set date value to date data type node?

    Hi,

    Whenever we are trying set the one value to node it should be format of string only. Before you are setting the value, you have to convert it into string then try to set this value.

     

    Date = DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss");

    thisxdocument.SelectSingleNode("Datenodexpath", Date).text;

     Datenodexpath --> Enter your date field xpath

    Anuma Chinthapalli /
    http://www.GGKTech.com
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.