Receive Date from Sharepoint list via Drop Down menu - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » Receive Date from Sharepoint list via Drop Down menu Receive Date from Sharepoint list via Drop Down menu Last post 10-14-2008 01:10 PM by bladah29. 3 replies. Page 1 of 1 (4 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 09-10-2008 06:24 PM bladah29 Joined on 06-21-2008 Posts 32 Receive Date from Sharepoint list via Drop Down menu Reply Contact Hi, I have a drop down menu that is receiving a date from a Sharepoint configured date field set to "Date Only". The drop down menu has the correct date (Year-Month-Day format) but also has 00:00:00 at the end. This is obviously the default time. How can I remove this from within the Infopath drop down menu? I assume I could use some type of function? Also, it would be nice to be able change the format of the how the date is displayed within the drop-down menu.Thanks! 09-13-2008 06:43 PM In reply to Clay Fox Joined on 06-27-2006 USA Posts 1,935 Re: Receive Date from Sharepoint list via Drop Down menu Mark as Not AnswerMark as Answer... Reply Contact You can try to change the date within SharePoint. Or you can use a setfield command on the dropdown to set it to substring-before(date, " ") That should remove the time characters. Clay Fox / Microsoft InfoPath MVP 09-14-2008 01:40 PM In reply to bladah29 Joined on 06-21-2008 Posts 32 Re: Receive Date from Sharepoint list via Drop Down menu Mark as Not AnswerMark as Answer... Reply Contact Wow, thanks Clay. You certainly pointed me in the right direction. Here is the actual string i used (turned out to be really easy): (substring(., 1, 10)) here is a blog that helped a lot: http://blogs.interknowlogy.com/jeffschroeder/archive/2007/02/08/11343.aspx 10-14-2008 01:10 PM In reply to bladah29 Joined on 06-21-2008 Posts 32 Re: Receive Date from Sharepoint list via Drop Down menu Mark as Not AnswerMark as Answer... Reply Contact Here is a blog entry I created for the solution to this: http://bladah.com/?p=34 Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Hi, I have a drop down menu that is receiving a date from a Sharepoint configured date field set to "Date Only". The drop down menu has the correct date (Year-Month-Day format) but also has 00:00:00 at the end. This is obviously the default time. How can I remove this from within the Infopath drop down menu? I assume I could use some type of function? Also, it would be nice to be able change the format of the how the date is displayed within the drop-down menu.
Thanks!
You can try to change the date within SharePoint.
Or you can use a setfield command on the dropdown to set it to substring-before(date, " ")
That should remove the time characters.
Wow, thanks Clay. You certainly pointed me in the right direction. Here is the actual string i used (turned out to be really easy):
(substring(., 1, 10))
here is a blog that helped a lot:
http://blogs.interknowlogy.com/jeffschroeder/archive/2007/02/08/11343.aspx
Here is a blog entry I created for the solution to this:
http://bladah.com/?p=34