<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Trim unwanted characters from combo box that retrieves data from SharePoint column</title><link>https://www.infopathdev.com:443/forums/thread/120073.aspx</link><pubDate>Thu, 15 Nov 2018 19:33:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120073</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120073.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=120073</wfw:commentRss><description>Well.... You could re-purpose some other list fields for helpers. The issue is you have repeating data, and you need to update each instance. So you could include some list fields you don&amp;#39;t need in your data connection, and (for example) set a rule on ID to reset the date fields to the format you want. Set ID to 0 in a form load rule (or sometime after your query has run) and since your ID field will never be 0, all the instances will change. The rule on the ID field could reset the date field using substring formulas to format the date. I just think adding a calculated column to the list is simpler. Here&amp;#39;s a link to a sample form with some date formulas: http://www.infopathdev.com/files/folders/examples/entry41104.aspx</description></item><item><title>Re: Trim unwanted characters from combo box that retrieves data from SharePoint column</title><link>https://www.infopathdev.com:443/forums/thread/120069.aspx</link><pubDate>Thu, 15 Nov 2018 15:50:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120069</guid><dc:creator>Daryl K</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120069.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=120069</wfw:commentRss><description>Thanks Hilary. So, no way to do this within Infopath? I could have swore I came across several other queries just like mine, where they said they used the substring-before to clear the extra characters, but did not provide detail how/where.</description></item><item><title>Re: Trim unwanted characters from combo box that retrieves data from SharePoint column</title><link>https://www.infopathdev.com:443/forums/thread/120068.aspx</link><pubDate>Thu, 15 Nov 2018 15:41:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120068</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120068.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=120068</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Daryl K:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Last note: FWIW the field is configured for DateOnlyType, not date and time.&lt;/div&gt;&lt;/BLOCKQUOTE&gt; In SharePoint, the actual data type is datetime. That&amp;#39;s why you end up with the blank time. SharePoint is just displaying date only, and not asking for time values when the data is entered.</description></item><item><title>Re: Trim unwanted characters from combo box that retrieves data from SharePoint column</title><link>https://www.infopathdev.com:443/forums/thread/120067.aspx</link><pubDate>Thu, 15 Nov 2018 15:40:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120067</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120067.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=120067</wfw:commentRss><description>In SharePoint, you are seeing a formatted date. When InfoPath queries the list / library, it returns the actual value - which is a date time (with a blank time). So - the issue you are going to have here is that you can&amp;#39;t use a formula to tidy this up in InfoPath, because, as you mentioned, you are using this data as the values for a combo box. What I would do is add a calculated column to the SharePoint list / library and use SharePoint date formulas to format the date as you&amp;#39;d like to see it in IP. Set the calculated column to just return text, and InfoPath should display it as you have it formatted. Make sense?</description></item><item><title>Re: Trim unwanted characters from combo box that retrieves data from SharePoint column</title><link>https://www.infopathdev.com:443/forums/thread/120066.aspx</link><pubDate>Thu, 15 Nov 2018 15:38:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120066</guid><dc:creator>Daryl K</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120066.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=120066</wfw:commentRss><description>Last note: FWIW the field is configured for DateOnlyType, not date and time.</description></item><item><title>Re: Trim unwanted characters from combo box that retrieves data from SharePoint column</title><link>https://www.infopathdev.com:443/forums/thread/120065.aspx</link><pubDate>Thu, 15 Nov 2018 15:19:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120065</guid><dc:creator>Daryl K</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120065.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=120065</wfw:commentRss><description>Interestingly, I noticed something else; Infopath reformats the date, so that in the SharePoint column it looks like this: 10/15/2018 but comes across into the combo box as 2018-10-15T00:00:00. I don&amp;#39;t care so much about &amp;quot;/&amp;quot; becoming &amp;quot;-&amp;quot; but why does it move the year to the front?</description></item><item><title>Trim unwanted characters from combo box that retrieves data from SharePoint column</title><link>https://www.infopathdev.com:443/forums/thread/120064.aspx</link><pubDate>Thu, 15 Nov 2018 15:05:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120064</guid><dc:creator>Daryl K</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120064.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=120064</wfw:commentRss><description>I have an InfoPath form that pulls several columns of data from a SharePoint list into combo boxes. One of the columns is a date field, and even though it is formatted correctly on the SharePoint side as date-only InfoPath adds a time component so that it always looks like this: 2018-10-15T00:00:00.

I have done a bit of research and read many times about using a substring-before function to remove the unwanted characters (i.e. substring-before(TimeField, &amp;quot;T&amp;quot;) but for the life of me I cannot figure out where/how to use this function in a combo box. Even MS&amp;#39;s own help documents mention clicking the Fx button, but this does not exist on a combo box. If it matters this is Infopath 2013.

Is there any way to trim the unwanted characters within the combo box?</description></item></channel></rss>