<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Converting date-time to date</title><link>https://www.infopathdev.com:443/forums/thread/20633.aspx</link><pubDate>Tue, 12 Jun 2007 15:19:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20633</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20633.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20633</wfw:commentRss><description>Cool, good luck!</description></item><item><title>Re: Converting date-time to date</title><link>https://www.infopathdev.com:443/forums/thread/20632.aspx</link><pubDate>Tue, 12 Jun 2007 15:15:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20632</guid><dc:creator>viperay</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20632.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20632</wfw:commentRss><description>&lt;p&gt;i tried this too. and finally i think there is two solution.&lt;/p&gt;&lt;p&gt;1- i have to change all fields which are date time picker to textboxes.&lt;/p&gt;&lt;p&gt;2- The date seems 2007-01-01 00:00:00. After sharepoint query and put the date on the textbox if you delete the time part which is 00:00:00 manualy it converts to date 01/01/2007 automatically.&lt;/p&gt;&lt;p&gt;i am thinking to use second solution. Thanks for your help.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Converting date-time to date</title><link>https://www.infopathdev.com:443/forums/thread/20631.aspx</link><pubDate>Tue, 12 Jun 2007 15:01:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20631</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20631.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20631</wfw:commentRss><description>&lt;p&gt;Hmm... since I am not seeing the data I cannot say what is going wrong. One guess is maybe you should try to change the underlying data type of DateOfInspection to DateTime from Date, and then you can tell it not to display time. If that does not work I don&amp;#39;t know what will :)&lt;/p&gt;</description></item><item><title>Re: Converting date-time to date</title><link>https://www.infopathdev.com:443/forums/thread/20627.aspx</link><pubDate>Tue, 12 Jun 2007 14:48:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20627</guid><dc:creator>viperay</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20627.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20627</wfw:commentRss><description>ok i uploaded it. as you see there is two date section. the first one put the today&amp;#39;s but the second one Observation date gets date information from a shareopint list.&lt;br /&gt;</description></item><item><title>Re: Converting date-time to date</title><link>https://www.infopathdev.com:443/forums/thread/20622.aspx</link><pubDate>Tue, 12 Jun 2007 14:28:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20622</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20622.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20622</wfw:commentRss><description>Interesting... I would like to take a look at your Solution, do you think you could share out our XSN? You can attach files in the Files section on the forum...</description></item><item><title>Re: Converting date-time to date</title><link>https://www.infopathdev.com:443/forums/thread/20597.aspx</link><pubDate>Mon, 11 Jun 2007 17:32:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20597</guid><dc:creator>viperay</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20597.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20597</wfw:commentRss><description>&lt;p&gt;but i tried all of the formatting options but nothing happens. it continues to show date like 2007-01-01 00:00:00 i search net and saw not only me has this problem. and there is no solution with infopath interface i think. by the way DT will be never empty in our database.&lt;/p&gt;&lt;p&gt;Or the solution is changing all date time pickers to normal textboxes in sharepoint.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Converting date-time to date</title><link>https://www.infopathdev.com:443/forums/thread/20594.aspx</link><pubDate>Mon, 11 Jun 2007 17:08:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20594</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20594.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20594</wfw:commentRss><description>&lt;p&gt;Well, there are several problems with this code:&lt;/p&gt;&lt;p&gt;- inspdate1 would not be defined - it&amp;#39;s a name of a data field. Typically you have to select the XPathNavigator corresponding to your data field from the DOM you&amp;#39;re interested in. In this case, however, the navigator is available as &lt;font size="2"&gt;e.Site: you get the value as e.Site.Value and you set it via e.Site.SetValue&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;- I don&amp;#39;t believe you can change the value of the field in its Validating event - during this event the field is read-only&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;- Changing the value of the field in its OnChange event is likely to cause an infinite loop: OnChange fires, you change the value, OnChange fires again&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;- I don&amp;#39;t know the details on Mid but what happens if DT is empty?&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;I would &lt;strong&gt;avoid &lt;/strong&gt;writing any code unless you really have to. Do you want to change the &lt;strong&gt;data&lt;/strong&gt; or the way it&amp;#39;s &lt;strong&gt;displayed&lt;/strong&gt;? If it&amp;#39;s the later, then &lt;strong&gt;Formatting&lt;/strong&gt; is really what you need.&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Converting date-time to date</title><link>https://www.infopathdev.com:443/forums/thread/20587.aspx</link><pubDate>Mon, 11 Jun 2007 16:40:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20587</guid><dc:creator>viperay</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20587.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20587</wfw:commentRss><description>&lt;p&gt;I tried this&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp; Public Shared Function Mid(ByVal str As String, ByVal Start As Integer, Optional ByVal Length As Integer&lt;strong&gt;)&lt;/strong&gt; As String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub inspdate1_Validating(ByVal sender As Object, ByVal e As XmlValidatingEventArgs)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39; Write your code here.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim newDT As String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim DT As String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim inspdate1 As String&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inspdate1 = &amp;quot;/my:myFields/my:inspdate1&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DT = inspdate1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newDT = Mid(DT, 6, 2) + &amp;quot;/&amp;quot; + Mid(DT, 9, 2) + &amp;quot;/&amp;quot; + Mid(DT, 1, 4)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inspdate1 = newDT&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;but it put underlines the letter (bracket in the first line ) which i made bold here. and says&amp;nbsp; -- optional parameters must specify a default value--&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Converting date-time to date</title><link>https://www.infopathdev.com:443/forums/thread/20586.aspx</link><pubDate>Mon, 11 Jun 2007 16:12:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20586</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20586.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20586</wfw:commentRss><description>So were you able to get it to work this time around? If not, could you give more details of what you are doing and it is breaking?</description></item><item><title>Re: Converting date-time to date</title><link>https://www.infopathdev.com:443/forums/thread/20585.aspx</link><pubDate>Mon, 11 Jun 2007 15:59:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20585</guid><dc:creator>viperay</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20585.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20585</wfw:commentRss><description>thx for answer. i am using sp2007 too. i tried this before. i did not work. &lt;br /&gt;</description></item><item><title>Re: Converting date-time to date</title><link>https://www.infopathdev.com:443/forums/thread/20584.aspx</link><pubDate>Mon, 11 Jun 2007 15:52:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20584</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20584.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20584</wfw:commentRss><description>&lt;p&gt;Data formatting is your friend here...&lt;/p&gt;&lt;p&gt;- Double-click on your control (whether it&amp;#39;s a data picker or a textbox, does not matter)&lt;/p&gt;&lt;p&gt;- Click on the &amp;quot;Format&amp;quot; button&lt;/p&gt;&lt;p&gt;You should see two sections, one for date and one for time. Make sure &amp;quot;(Do not display time)&amp;quot; is selected in the second section.&lt;/p&gt;&lt;p&gt;Disclaimer: I have only tried this in InfoPath 2007 although a similar functionality should be available in IP2003 as well.&lt;/p&gt;&lt;p&gt;I hope this answers your question...&lt;/p&gt;&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>Converting date-time to date</title><link>https://www.infopathdev.com:443/forums/thread/20583.aspx</link><pubDate>Mon, 11 Jun 2007 14:41:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20583</guid><dc:creator>viperay</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20583.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20583</wfw:commentRss><description>&lt;p&gt;Hi. I am using infopath forms to query sharepoint. And one of field in the form it gets a date from sharepoint list coulomb which is a date picker but on the form it shows like &amp;quot; 2007-06-20 00:00:00 &amp;quot; but i want it to show like &amp;quot; 06/20/2007 &amp;quot; &lt;/p&gt;&lt;p&gt;i tryied to set up function on the rules but i doesnt work. so how can i convert this date?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>