View previous topic :: View next topic |
Author |
Message |
jolupa -
Joined: 08 May 2003 Posts: 6 Location: Spain
|
Posted: Wed Jul 02, 2003 1:01 am Post subject: How to... time format? |
|
|
Hi. :D.
I have an HTML form page. In this form page i have a text, not editable, that shows the current date in this format (dd-mm-yyyy).
My question is: There's a way to put the date, in the format shown above, without PHP or ASP programation.
This is the only thing that need to be programmed in the that page, and i dont want to make all the page in PHP, cause i'm using a template system, and i dont want this page in HTML.
Thank u everyone. :roll: |
|
Back to top |
|
 |
Gatewayy -
Joined: 15 Mar 2003 Posts: 109
|
Posted: Wed Jul 02, 2003 1:35 pm Post subject: |
|
|
save your page as .php maybe? _________________ -=Gatewayy=-
My Abyss site!
http://crashhappy.gatewayy.net |
|
Back to top |
|
 |
jolupa -
Joined: 08 May 2003 Posts: 6 Location: Spain
|
Posted: Wed Jul 02, 2003 11:45 pm Post subject: |
|
|
Well.
I want to see i want to save the page in HTML without entering in programing some lines in PHP or ASP.
:) |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Jul 03, 2003 1:05 pm Post subject: Re: How to... time format? |
|
|
You can use SSI processing.
Insert in your HTML code the following code:
Code: |
<!-- #echo var="DATE_LOCAL" -->
|
Change the extension of the file to shtml instead of html of htm . Browse the page now and you'll see that the date is displayed automatically.
You can play with the date format using other SSI directives. For more information, see the "Server Side includes" chapter in the user's guide. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|