Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve Week No from a date input field in a form

Status
Not open for further replies.

kiwieur

Technical User
Apr 25, 2006
200
GB
Hi,

Could someone help please.

I have a form with an input box for a date, the date is selected via a date picker. my question is:

Can i then populate another input box with the week number referring to the date entered

Regards

Paul
 
As you have asked this in the ASP forum, I guess you want to do this serverside. If so just submit the form to its own page, test if date picker is populated. If so test for week number being populated. If yes redirect to next page - you're done. If no then process date to week number, fill in input box and reshow the form.

You could also achieve the same result clientside via Javascript (see forum216) or with AJAX. Both these rely on JS being enabled on the client

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Johnwm,

Thanks for the reply,

I will have a look at the javascript forum, I do not do a lot of scripting so it will perhaps take me a little while to grasp things.

Thanks for the info

Regards

Paul

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top