<?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: Help with Formula for Today's date and a set time (07:30:00)</title><link>https://www.infopathdev.com:443/forums/thread/125007.aspx</link><pubDate>Sun, 31 Jul 2022 07:20:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125007</guid><dc:creator>rticehurst</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125007.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=125007</wfw:commentRss><description>Thanks so much Hilary, worked a treat.</description></item><item><title>Re: Help with Formula for Today's date and a set time (07:30:00)</title><link>https://www.infopathdev.com:443/forums/thread/125006.aspx</link><pubDate>Fri, 29 Jul 2022 16:12:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125006</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125006.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=125006</wfw:commentRss><description>Datetime in XML is yyyy-dd-MMTHH:mm:ss. It can be confusing, because the controls on the form may be formatting the date time, but that doesn&amp;#39;t change the underlying value. The today function will return today&amp;#39;s date, so you could just use something like this: concat(today(), &amp;quot;T07:30:00&amp;quot;)</description></item><item><title>Help with Formula for Today's date and a set time (07:30:00)</title><link>https://www.infopathdev.com:443/forums/thread/125005.aspx</link><pubDate>Fri, 29 Jul 2022 09:00:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125005</guid><dc:creator>rticehurst</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125005.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=125005</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am rebuilding some old Sharepoint Designer forms with InfoPath.&amp;nbsp; The forms support a sharepoint list that we use in the pharmacy for recording the prescription orders received from the hospital wards (in New Zealand).&amp;nbsp; Each morning the staff arrive and there will be a heap of prescriptions received overnight and staff need to enter them in the list with a date and time received of today&amp;#39;s date and a specific time.&amp;nbsp; The field is defaulted to Now() and i have a button (javescript) on the old form that the staff simply click and it populates today&amp;#39;s date and the time of 07:30.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve created the form and added some buttons but have become stuck on the formula that i require.&amp;nbsp; I have seen various posts&amp;nbsp; on this forum related to this but none that cover this specific issue.&amp;nbsp; The secondary challenge is that InfoPath creates the date time control formats as two fields - one with the date (date picker) and the second with the time (text).&amp;nbsp; Existing posts that describe a formula for a button to complete the date (eg add 7 days) put the same value in both fields but that then fails the validation step.&lt;/p&gt;&lt;p&gt;I can;t post images but when i open the form the two fields correctly display now() with the date in the first field and the time in the second field.&amp;nbsp; I have a button for reseting the date and time to now() and that works properly - date in one field and time in the other.&amp;nbsp; My second button is labelled &amp;#39;overnight&amp;#39; and has the following code to the set the field value&lt;i&gt;:&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;concat(number(substring(now(), 9, 2)), &amp;quot;/&amp;quot;, number(substring(now(), 6, 2)), &amp;quot;/&amp;quot;, number(substring(now(), 1, 4)), &amp;quot; 7:30:00&amp;quot;)&lt;/i&gt;&lt;/p&gt;&lt;p&gt;I know my code isn;t right - hence this post, but when i hit the button it pops the same value in both fields (29/07/2022 7:30:00) whereas i just need the specified time of 07:30:00 in the second field.&amp;nbsp; Any ideas?&lt;/p&gt;&lt;p&gt;Thanks in advance&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>