Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

How do I create a time field that's export value is 3 hours ahead of the current time?

$
0
0

I need to create a field on one of our forms that takes the current time from another field and adds 3 hours to it. The JavaScript to pull the current time is:

 

var tm = this.getField("Time");

if(tm.value == '' || tm == ' ') tm.value =
util.printd("HH:MM tt",new Date());


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>