Populate field with Date - InfoPath Dev
in

InfoPath Dev

Populate field with Date

Last post 07-26-2006 02:20 AM by shekar. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-15-2006 07:09 PM

    Populate field with Date

    I am trying to populate a text box with a date value from a secondary data source connected to SQL Server. The date shows up with a time value that I do not want to display. How can I make only the date display without the time?
    TIA
    Dean
    Dean
    Charlotte, NC
  • 06-15-2006 11:31 PM In reply to

    • uma
    • Top 500 Contributor
    • Joined on 12-23-2005
    • Posts 35

    Re: Populate field with Date

    Hi,

    Steps to display date only without the time:
    1. Double click text box to see the properties of it, in which you want to dispaly only date with out time.
    2. Under the Data tab click on "Format" button.
    3. In the date and time format dialog box select the "(Do not diaplay time)" option under "display the time like this" division click ok two times to close the dialog boxes.

    Hope this, it will solve your problem.
  • 06-16-2006 05:01 AM In reply to

    Re: Populate field with Date

    Thanks, but I have already done these steps. The text box displays the date correctly when I enter it or use the Calendar control, but when the text box gets filled from the Rule associated with a Dropdown list the time is shown. I think that I probably need to do some type of conversion in the xPath formula, but I don't know how.
    Dean
    Charlotte, NC
  • 06-19-2006 06:39 AM In reply to

    Re: Populate field with Date

    I discovered that if I change the data type from Date (date) to Text (String) that the minutes do not get displayed.
    Dean
    Charlotte, NC
  • 07-26-2006 02:20 AM In reply to

    • shekar
    • Not Ranked
      Male
    • Joined on 07-26-2006
    • India
    • Posts 22

    Re: Populate field with Date

    Set the value in text box using rules to extract only the date after selecting date from date picker using below function
    substring-before(datefield, "T").
    Shekar
    http://www.ggktech.com
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.