newbie needs a bit more help

W

WindAndWaves

Hi Gurus

I have a form where the user can enter a date. It then uses it to find a
bookmark:

document.location.href='#' + form.day.value + form.month.value +
form.year.value;

I would like to use a similar concept to complete a form inputbox with the
date, as follows: day-month-year (e.g. 01-10-05 or 01-Oct-05)

Can anyone help?

TIA

- Nicolaas
 
D

Dr John Stockton

JRS: In article <[email protected]>, dated Sun, 31
Oct 2004 13:47:55, seen in WindAndWaves
I have a form where the user can enter a date. It then uses it to find a
bookmark:

document.location.href='#' + form.day.value + form.month.value +
form.year.value;

I would like to use a similar concept to complete a form inputbox with the
date, as follows: day-month-year (e.g. 01-10-05 or 01-Oct-05)

Can anyone help?

Help via FAQ section 3.2; also see below.

Strongly recommend that you do not use ISO 8601 preferred date separator
with non-8601 field order in all-numeric dates, that you use 4-digit
years, and that you use ISO field order YMD.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top