Changes

Obtain Server Date and Time

343 bytes added, 14:05, 2 July 2013
no edit summary
There are several methods to obtain the server date and time.
==Variable Method==
* Note: The '''getservertime''' JavaScript function will work in the UTA Level 1, 2 and 3. In other places such as [[Web Page ViewsView]] s or custom fields on Contacts or Companies you will need to include the '''/Ajax/uta/in_uta.js''' JS file (See [[Adding JavaScript JS files to Web Page View Pages]]) 
* It is possible to get the date and time from the client machine using JavaScript's built-in '''Date()''' function, but using the server date and time is usually preferred since it is consistent and controlled.
==See Also==
* [[Submit Logic]]
* [[savefunc]] and [[sbfunc]]
* [[Pandora - Sample - Obtain Current Server Time]]
[[Category:JavaScript]][[Category:Time]]
8,849
edits