<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: DatePicker loosing a day.</title><link>https://www.infopathdev.com:443/forums/thread/18064.aspx</link><pubDate>Mon, 01 Nov 2004 13:44:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18064</guid><dc:creator>sakieboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18064.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18064</wfw:commentRss><description>Is there a simple way of handling military time?  Currently, that's what my DatePicker control is expecting.  I wrote a function to handle this and it appears to work ok.  Once I select a record from the database via a dropdownlist, the values are populate, immediately after they are populated I would like a few of the fields to be repopulated to keep track of the UserName and the TimeDateStamp.&lt;br /&gt;&lt;br /&gt;After&lt;br /&gt;&lt;b&gt;thisXDocument.Query();&lt;/b&gt;&lt;br /&gt;I have code to do this, but the code will not execute, it appears to bomb out on the &lt;br /&gt;&lt;br /&gt;thisXDocument.Query();&lt;br /&gt;&lt;font color="red"&gt;&lt;b&gt;IXMLDOMNode nodeWhoLastChanged = thisXDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/s0:SelectEmploymentOfferRequestByResumeIDResponse/s0:SelectEmploymentOfferRequestByResumeIDResult/ns1:DataSet1/ns1:dbo_udp_SelectEmploymentOfferRequestByResumeID/ns1:WhoLastChanged");&lt;/b&gt;&lt;/font id="red"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SOLUTION:&lt;/b&gt; Get out of Visual Studio and reload it.</description></item><item><title>Re: DatePicker loosing a day.</title><link>https://www.infopathdev.com:443/forums/thread/18063.aspx</link><pubDate>Wed, 27 Oct 2004 01:12:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18063</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18063.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18063</wfw:commentRss><description>I'm glad you got that fixed. Its sounds like kind of a hack of a solution, but it seems to work for now.&lt;br /&gt;&lt;br /&gt;1) Date picker's don't actually pick time - only dates. To pick times, you should have a textbox or a drop-down list. Binding both a date picker and a time text box to the same field is not a good idea. The values will override each other. You can have 2 fields (one date, and one time) that use the concat() function to merge them into a single dateTime field.&lt;br /&gt;&lt;br /&gt;Also, what exatly is the format of smalldatetime compared to datTime? dateTime format is yyyy-mm-ddThh:mm:ss. If this doesn't match the format of smalldatetime, that might be where the problem is coming from.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2) Fields don't need to be visible in the form to be filled in. Just don't have them in the form and use code to populate their values. There have been numerous discussions on the public newsgroup about how to get system login info if you need that help. Search Google Groups.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Re: DatePicker loosing a day.</title><link>https://www.infopathdev.com:443/forums/thread/18062.aspx</link><pubDate>Mon, 25 Oct 2004 21:28:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18062</guid><dc:creator>sakieboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18062.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18062</wfw:commentRss><description>My type for the date in SQL is a smalldatetime.&lt;br /&gt;&lt;br /&gt;Also, the second issue I resolved by changing my int types in SQL to nvarchars.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I'll try the sDate.substring in the form_load...&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SOLUTION&lt;/b&gt;: In SQL I added 5 hours to the date DATEADD(hh,5,MyDate).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2&lt;/b&gt; other issues and my first form will be complete.&lt;br /&gt;&lt;br /&gt;1) I currently have 2 datepickers, one to display the date and the other to display the time. I'm not sure if I should do this or display them both in the same datepicker. Anyway, when I attempt to change the time, I get a submit error "Error converting data type datetime to smalldatetime."&lt;br /&gt;&lt;br /&gt;2) I have fields in my database that are required, WhoAdded, WhoLastChanged, DateAdded, and DateLastChanged.  Of course, I would like &lt;b&gt;NOT&lt;/b&gt; to have these fields visible on my form, and would rather have the values interpreted, ie, the WhoLastChanged and WhoAdded I would like to come from the NT Logon Name, and the DateLastChanged and DateAdded would be the Current System datetime of the submit.  Suggestions? This is only an issue if I am attempting to INSERT the form information into the database.&lt;br /&gt;</description></item><item><title>Re: DatePicker loosing a day.</title><link>https://www.infopathdev.com:443/forums/thread/18061.aspx</link><pubDate>Mon, 25 Oct 2004 20:59:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18061</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18061.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18061</wfw:commentRss><description>Hmmm. Your not even working with a dateTime type, yours is defined strictly as a date type.&lt;br /&gt;&lt;br /&gt;For JScript you would just use sDate.substring(0, 10); This would give you "2004-10-04".&lt;br /&gt;&lt;br /&gt;What I don't understand is why you are getting all the time and time zone information for a date type.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Re: DatePicker loosing a day.</title><link>https://www.infopathdev.com:443/forums/thread/18060.aspx</link><pubDate>Mon, 25 Oct 2004 20:52:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18060</guid><dc:creator>sakieboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18060.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18060</wfw:commentRss><description>I can't seem to find any easy way to substring the code in the Web Service because the contents are within a dataset and it looks like this:&lt;br /&gt;&amp;lt;xs:element name="MyDate" type="xs:date" minOccurs="0" /&amp;gt;&lt;br /&gt;It doesn't give me an option to do a substring.  So I'm not sure if my Web Service is able to handle it, if so, I'm not sure of where or how.  You mentioned code that can be done to create this date.  I take it you're talking about within the JS file in InfoPath.  Would you happen to have this code and where would I place it within the JS file?&lt;br /&gt;&lt;br /&gt;Also, if a DropDownList displays a "0", to which it received from a Web Service, although the database shows it as NULL. I'm wondering is there anyway that we can make this value "Empty" or "Please select item"?&lt;br /&gt;</description></item><item><title>Re: DatePicker loosing a day.</title><link>https://www.infopathdev.com:443/forums/thread/18059.aspx</link><pubDate>Fri, 22 Oct 2004 18:48:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18059</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18059.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18059</wfw:commentRss><description>The dateTime you are receiving back has a shift for time zone:&lt;br /&gt;2004-10-04T00:00:00.0000000-04:00&lt;br /&gt;&lt;br /&gt;If you want the current dateTime, not accounting for a time zone, you need to grab the first 19 characters:&lt;br /&gt;2004-10-04T00:00:00&lt;br /&gt;&lt;br /&gt;Perhaps the Web service can be configured to return a dateTime without the time zone. If not you can use code to fix this.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>DatePicker loosing a day.</title><link>https://www.infopathdev.com:443/forums/thread/17976.aspx</link><pubDate>Fri, 22 Oct 2004 15:22:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17976</guid><dc:creator>sakieboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17976.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=17976</wfw:commentRss><description>I've noticed that my Webservice is returning a date ie. 2004-10-04T00:00:00.0000000-04:00 but my DatePicker in InfoPath is Displaying 10/3/2004.  Is there a quick workaround for this?</description></item></channel></rss>