Now() function - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » Now() function Now() function Last post 09-06-2019 09:47 AM by Hilary Stoupa. 3 replies. Page 1 of 1 (4 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 09-05-2019 12:58 AM erzon Joined on 08-03-2019 Posts 39 Now() function Reply Contact Hi is it possible to add like 12 hours once you extract the time from now() function? Filed under: now, time format 09-05-2019 08:36 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,297 Re: Now() function Form1.xsn Mark as Not AnswerMark as Answer... Reply Contact Use the addSeconds function - but I'd probably add that first, then use substring-after to get the time. See attached - save the file locally, right click & select Design. Formula is: addSeconds(now(), 43200) Hilary Stoupa 09-06-2019 09:24 AM In reply to erzon Joined on 08-03-2019 Posts 39 Re: Now() function Mark as Not AnswerMark as Answer... Reply Contact Hilary Stoupa:Use the addSeconds function - but I'd probably add that first, then use substring-after to get the time. See attached - save the file locally, right click & select Design. Formula is: addSeconds(now(), 43200) is 43200 equivalent to 12 hrs? so for example the date now and time is Sept 7 11PM so if I add that function it will become Sept 8 11AM? 09-06-2019 09:47 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,297 Re: Now() function Mark as Not AnswerMark as Answer... Reply Contact Yup - did you see my sample form? You can just use Google to figure out the math.... but if you need to do it in your form (like, user types in the number of hours) you can multiply the field with the hours to add by 3600, which is the number of seconds in an hour. Hilary Stoupa Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Hilary Stoupa:Use the addSeconds function - but I'd probably add that first, then use substring-after to get the time. See attached - save the file locally, right click & select Design. Formula is: addSeconds(now(), 43200)