Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1534 How do I use Eastern Standard Time?

You are here: irt.org | FAQ | JavaScript | Date | Q1534 [ previous next ]

Try:

<script language="JavaScript"><!--
var now = new Date();

var nowUTC = new Date(Date.UTC(now.getFullYear(),now.getMonth(),now.getDate(),now.getHours(),now.getMinutes(),now.getSeconds,now.getMilliseconds()))

var EST = -9 // I have no idea ;-)
var anHour = 60*60*1000;

now.setTime(nowUtc+(EST*anHour));
//--></script>

©2018 Martin Webb