Difference between revisions of "Time Zone"

From Hostek.com Wiki
Jump to: navigation, search
m (Briana moved page ASP Timezone to Time Zone without leaving a redirect)
Line 1: Line 1:
==Code to change your timezone==
+
Our servers are on Central Time Zone (timezone).
 +
 
 +
If you are in a different part of the country or world, you may want to adjust the time in your scripts.  Below are a few example of how to do that.
 +
 
 +
__FORCETOC__
 +
 
 +
==ASP time change sample==
  
 
Here is an ASP code example that subtracts 1 hour from the server time.
 
Here is an ASP code example that subtracts 1 hour from the server time.

Revision as of 17:24, 22 November 2012

Our servers are on Central Time Zone (timezone).

If you are in a different part of the country or world, you may want to adjust the time in your scripts. Below are a few example of how to do that.


ASP time change sample

Here is an ASP code example that subtracts 1 hour from the server time.

The time is <%=FormatDateTime(DateAdd("h",-1,Now),3)%>.