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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does javascript have a week function?

Status
Not open for further replies.

neillovell

Programmer
Aug 27, 2002
560
GB
Hi,
in MS Access I have a form set up so when the user selects a date from a drop down menu the following code executes for the Week field

Me.txtWeek = DatePart("ww",Me.txtDate)

So if 16/10/2002 was chosen the function would output 44 to the week field (as it's in the 44th week of the year).

Unfortunately when the form has been converted to a data access page this VBA code doesn't work, so I was wondering if anyone had some javascript code that does the same?

I'd really appreciate it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top