> 
> **Possible Duplicate:**  
> 
> [Simplest way to parse a Date in Javascript](https://stackoverflow.com/questions/1258310/simplest-way-to-parse-a-date-in-javascript) 
> 
> 
> 

I understand how do get the data and break it down into it's segments, i.e.

```
alert( ( new Date ).getDate() );

```

and

```
alert( ( new Date ).getFullYear() );
alert( ( new Date ).getFullMonth() );

```

etc etc.

But how do I do the same but use a date from a html textbox? instead of reading `new Date`?

The date in the HTML box would be formated as follows

31/10/2012