# Countdown clock with \*server\* time

**URL:** <https://forum.kirupa.com/t/countdown-clock-with-server-time/18854>\
**Category:** flash\
**Created:** [April 22, 2003, 12:55am UTC](https://forum.kirupa.com/t/countdown-clock-with-server-time/18854 "2003-04-22T00:55:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PitchBlank](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@PitchBlank](https://forum.kirupa.com/u/PitchBlank)\
**Post date:** [April 22, 2003, 12:55am UTC](https://forum.kirupa.com/t/countdown-clock-with-server-time/18854/1 "2003-04-22T00:55:34Z")

</div>

Argh! I’m trying to make a countdown clock to put on a website (showing days/hrs/mins/secs left until a product release) in Flash MX but this “#¤=)(#”#)! Date stuff in Flash is useless since it grabs the time from the client side. How do I get the current date/time from the server and get it into Flash?

I tried literally hundreds of searches on Google (variations on Flash+MX+server side time+countdown+clock+world time+world clock+blah blah blah) but I either find nothing relevant or fancy samples and scripts that involve ASP/PHP/SSI/Whatever, with analog dials and multiple clocks and other distractions.

I just want a simple digital countdown clock based on the CET time on my server. Anyone?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 22, 2003, 1:44am UTC](https://forum.kirupa.com/t/countdown-clock-with-server-time/18854/2 "2003-04-22T01:44:07Z")

</div>

Talking to myself here…

I had an idea. I can use server side includes (.shtm document) on the site. If I use the HTML tag way to pass variables to Flash (like… PARAM NAME=movie VALUE="/example.swf?year=2003\> and create the date/time on the fly with SSI DATE\_LOCAL, I could calculate the offset between server and client time and… would that work?
