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!

Help with this code please :)

Status
Not open for further replies.

youradds

Programmer
Jun 27, 2001
817
GB
Hi,

I'm trying to get the code below to show the date as this kind of format: 2007-08-24 , instead of 20070824.

The JS code is actually from here:


I've setup a basic version here, with some sample dates (this month) - - click on the 10th, and look at the top of the page - hopefully you'll see what I mean about the date format?

TIA to any feedback - I'm at a real hurdle now :(

Cheers

Andy
 
Hi,

I'm afraid not. I ended up using a Perl module (Calendar::Simple) and creating a table via that, with the dates from the current month (I'm a lot more proficient in Perl programming, as its my main programming language :)). Its not quite as pretty as I was hoping for - but it seems more effecient, as I needed to also do some things to the dates.

i.e change:

2 (for the 2nd) to:

<a href="calendar.cgi?date=2007-08-02" title="5 records">2</a>

Thanks for the reply though :)

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top