<?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: Display Time only from button click</title><link>https://www.infopathdev.com:443/forums/thread/10286.aspx</link><pubDate>Wed, 16 Aug 2006 03:18:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10286</guid><dc:creator>Shiraz Cupala</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10286.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10286</wfw:commentRss><description>Thank you for sharing your solution in such detail. &lt;br /&gt;&lt;br /&gt;For folks who want to copy paste the formulas above into the formula dialog just check the box to "Edit XPath (advanced)".  What this does is show and allow you to enter the formula raw.  Note that the my:txtStart will have to be the correct node in your form.&lt;br /&gt;&lt;br /&gt;:)</description></item><item><title>Re: Display Time only from button click</title><link>https://www.infopathdev.com:443/forums/thread/10285.aspx</link><pubDate>Tue, 15 Aug 2006 16:57:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10285</guid><dc:creator>taenkarth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10285.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10285</wfw:commentRss><description>Nevermind. Solved it already. Here is what I did for the rest of you.&lt;br /&gt;&lt;br /&gt;1. I set a rule on the "Start Button" named "Click"&lt;br /&gt;2. I then created an action on the "Click" rule to set the vaule of the Textbox field to "now()"&lt;br /&gt;2. I then created a second action on the "Click" rulet o set the value of the Textbox to "substring-after(txtStart, "T")"&lt;br /&gt;&lt;br /&gt;I used the formula wizard so the above formulas are not XPath formulas and should not be typed directly in but created from the formula wizard.&lt;br /&gt;The true XPath formulas are below for those of you ho would like them.&lt;br /&gt;&lt;br /&gt;Action 1 = xdDate:Now()&lt;br /&gt;Action 2 = substring-after(my:txtStart, "T")&lt;br /&gt;&lt;br /&gt;Happy Coding!&lt;br /&gt;</description></item><item><title>Display Time only from button click</title><link>https://www.infopathdev.com:443/forums/thread/5780.aspx</link><pubDate>Tue, 15 Aug 2006 16:33:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5780</guid><dc:creator>taenkarth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5780.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5780</wfw:commentRss><description>I have a form with two buttons and to text boxes.&lt;br /&gt;I have 1 text box and one button for Start time and stop time respectively.&lt;br /&gt;When I press the button "start time" I would like the textbox for "Start time" to display "hh/mm/(AM/PM)" without using managed code. (I have already done it in managed code but I would like to drop the code dependence on such a simple form)&lt;br /&gt;&lt;br /&gt;The textbox format is set to time with the correct format as described above. When I press the start button I ahve a function to set the textbox value to "now()". The textbox, however, does not format the time value correctly.&lt;br /&gt;&lt;br /&gt;Any ideas? I ahve read many of the time postings in here and none seem to really answer this specific problems. Also I do not want to use a DatePicker control.&lt;br /&gt;&lt;br /&gt;Thanks in advance!</description></item></channel></rss>