Date Drop-Down picker - InfoPath Dev
in

InfoPath Dev

Date Drop-Down picker

Last post 01-23-2011 01:47 PM by Joey_86. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-19-2011 03:12 PM

    • Joey_86
    • Top 500 Contributor
      Male
    • Joined on 12-22-2010
    • Sydney
    • Posts 28

    Date Drop-Down picker

    Hi, I have a InfoPath 2010 form with 3 fields;

    Field 1 - captures the date selected from another form via second data source (Australia date format DD/MM/YYYY)

    Field 2 - captures todays date (today())

    Field 3 - should display the number of days between Field 1 & Field 2

    The issue is that when I preview the form, for some reason Field 1 displays as '2010-11-04 00:00:00', Field 2 is displayed normally DD/MM/YYYY, Field 3 displays NaN

  • 01-21-2011 02:59 AM In reply to

    • Joern
    • Top 150 Contributor
    • Joined on 09-28-2010
    • Posts 79

    I would guess that you need to change the type of field 1 from "string" to "date"....

  • 01-21-2011 03:53 AM In reply to

    What kind of data source is field 1 coming from?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 01-23-2011 01:47 PM In reply to

    • Joey_86
    • Top 500 Contributor
      Male
    • Joined on 12-22-2010
    • Sydney
    • Posts 28

    Joern, I tried to set Field 1 as a date format but it still didn't work unfortunatley.

    Jimmy, Field 1 is pulling data from a Sharepoint Forms Library with XML posts, I basically have a child InfoPath form that users fill out and submit to that library, I also have columns in that library that capture data but are hidden, the InfoPath form above then searches that library with specific filters for the data.

    Hope that helps, let me know if there's any more info I can help with to get this issue sorted, thanks.

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.