This is a discussion on "date code" within the JavaScript Forum section. This forum, and the thread "date code are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
date code
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
date code
Hi all,
I would like to display the current date on my site. Before posting I did try to search this forum but code not find anything. Can anyone help please? Regards. John. |
|
|
|
#2
|
||||
|
||||
|
Re: date code
You can do this using JS, here a link i found through google
http://www.webreference.com/js/scripts/basic_date/ hope this helps Craig *staff move to JS forum*
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
|
#3
|
||||
|
||||
|
Re: date code
Or you easily use PHP.
Anyway, may I ask why you need the date on your page? Most people can look in the bottom right of their screen for the date on Windows (Hover over the time and it shows) so why does your website need to tell them again?
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#4
|
|||
|
|||
|
Re: date code
|
|
#5
|
|||
|
|||
|
Re: date code
Thanks for your help.
Firstly the reason I thought it would be a good idea to add the date was because I thought it may look good. Secondly I have created my page in CSS and HTML, will the php code work within the html? Regards. John. |
|
#6
|
||||
|
||||
|
Re: date code
You would have to change your site to php, ill find a link for you in a second mate
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
|
#7
|
||||
|
||||
|
Re: date code
If you wanted to use php when you would have to replace the .html extension with .php, this also means that you would have to use a local server to test your pages.
http://www.webforumz.com/php-forum/6...ite-to-php.htm If you used Javascript then you can just use this in the HTML page without changing to php, this was why i recommended this method
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
|
#8
|
|||
|
|||
|
Re: date code
If you wish to use PHP then replace this code on your page.
www.usbtvtuner.co.uk/tvstick6.php If you used this code on eveery page then the php extension would have to be used. This is assuming your host supports PHP. Cheers Pat |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| code behind code doesnt work | skat | ASP.NET Forum | 4 | Feb 18th, 2008 10:05 |
| live search code and styleswitcher code | hebel | JavaScript Forum | 0 | May 12th, 2007 06:16 |
| Changing date format in date picker | AdRock | JavaScript Forum | 1 | Aug 1st, 2006 17:16 |
| Date in Asp | Gup | Classic ASP | 1 | Jun 5th, 2006 09:05 |
| Can somebody give me the code to hide the source code? | renren | JavaScript Forum | 7 | Mar 7th, 2006 12:27 |