|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Adjusting time display from server time to local time
How can I change the time display on a website from my server's time (Mountain) to my local time (Eastern)? I tried:
#TimeFormat(now()+2,'h:mm tt')# but it doesn't work, although I was able to change the date displayed using the same logic. Thanks, Jason |
|
#2
|
|||
|
|||
|
Try something like:
<cfset currentTime = Hour(now()) + 2> This will increment the hour of the current time by 2 (or whatever you want) |
|
#3
|
|||
|
|||
|
This is the right approach.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Adjusting time display from server time to local time |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|