# Passing a Var in URL

**URL:** https://forum.kirupa.com/t/passing-a-var-in-url/208385
**Category:** flash
**Created:** [November 28, 2006, 4:59am UTC](https://forum.kirupa.com/t/passing-a-var-in-url/208385 "2006-11-28T04:59:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![odine](https://avatars.discourse-cdn.com/v4/letter/o/a5b964/32.png) [@odine](https://forum.kirupa.com/u/odine)
#### Post date: [November 28, 2006, 4:59am UTC](https://forum.kirupa.com/t/passing-a-var-in-url/208385/1 "2006-11-28T04:59:25Z")

</div>

Hello all,

I had a quick question regarding Passing a Variable VIA the URL. I know you can do something like “[www.someurl.com?somevar=true](http://www.someurl.com?somevar=true)” or somethign like that. But i need to somehow pass a date via the URL Var

```auto

var oldDate = new Date(2005,10,25); 
var newDate = new Date();
var elapsed = newDate - oldDate;

```

How on earth do i pass a date with multiple entried (2005,10,25) via a URL variable? I NEED to send the var oldDate = new Date(); in the URL. i know i cant go “?oldDate = new Date(2003,9,21)”

So how do i pass a variable like that???

Cheers all!  
–][–
