Forum Post: Time

  • Thread starter Thread starter matman
  • Start date Start date
Status
Not open for further replies.
M

matman

Guest
I am trying to retrieve some time values, so I can generate a warning message 5 days after a specific date. My current script to retrieve time: var then = "{!web02_materialstime}"; var toString = "Now #1: " + Date("{!date_field}") + "\r\n"; toString += "Now #2: " + rbv_api.getCurrentDate() + "\r\n"; toString += "Now #3: " + new Date() + "\r\n"; toString += "Then: " + then + "\r\n"; return toString; Now #1: Fri Sep 26 2014 09:38:25 GMT-0500 (CDT) Now #2: Fri Sep 26 2014 14:38:25 (GMT) Now #3: Fri Sep 26 2014 09:38:25 GMT-0500 (CDT) Then: Fri Sep 26 2014 19:30:34 (GMT) Why does the "Then" time field return a date into the future? It's currently setup to " Use current date plus 0 days as default value for newly created records". "Now #2" and "Then" are both GMT, why the difference?

Continue reading...
 
Status
Not open for further replies.
Back
Top