Hello. If anyone has the code to post the Date in this format:
November 16, 2000
Please post the code.
Thanks
| SitePoint Sponsor |

Hello. If anyone has the code to post the Date in this format:
November 16, 2000
Please post the code.
Thanks





Can you use server side includes?
If so then:
<!--#config timefmt="%B %d, %Y"--><!--#echo var="DATE_LOCAL"-->
Reference found here:
http://www.petestech.com/auth/ssi/ssitut_04.shtml

Thanks. I should of put that I can accept that kind of code.





Any kind of code?Originally posted by sparkele
Thanks. I should of put that I can accept that kind of code.
Do you mean your server can run ASP, Perl, CFM, PHP, and Python scripts?
Really, you need to know whether or not your host supports SSI. If you are paying your host, you most likely have SSI support, as well as one or two of the above.

I do pay for my website.





I host sparkele on my server, and yes, he has SSI, PHP, Perl, etc. support.Originally posted by Aidan Bahta
Any kind of code?Originally posted by sparkele
Thanks. I should of put that I can accept that kind of code.
Do you mean your server can run ASP, Perl, CFM, PHP, and Python scripts?
Really, you need to know whether or not your host supports SSI. If you are paying your host, you most likely have SSI support, as well as one or two of the above.
Also, I can give you (sparkele) a date script if the above doesn't work. Just let me know, it's a JavaScript.
<Edited by M. James on 01-06-2001 at 11:58 AM>





Will that work on NT/W2K servers?Originally posted by petesmc
Can you use server side includes?
If so then:
<!--#config timefmt="%B %d, %Y"--><!--#echo var="DATE_LOCAL"-->
Reference found here:
http://www.petestech.com/auth/ssi/ssitut_04.shtml





If you have SSI enabled, that should work on all servers, You just need to find out whether you have SSI





I thought the 'echo' command was something used in Perl / Unix.





Almost every server has SSI (except most free servers). SSI has become one of the most adaptable and easy-to-impliment languages. The SSI script should work.
If not, Date() functions in JavaScript and VBScript are a SNAP.![]()



echo is used in PHP and SSI on any server that has those installed.
Blamestorming: Sitting around in a group discussing why a deadline was missed or a project failed and who was responsible.
Exbabylon- Professional Internet Services
I just found my new year resolution - one day I'll be able to say that!Originally posted by goober
If not, Date() functions in JavaScript and VBScript are a SNAP.![]()





D,
lol! they are sooo easy.
Talk to me sometime! sean@interfall.com![]()
Thanks for that, goober - I only started JS this week, so I've lots to learn before I can say it's a snap!





Dreuby,
Well, I may have sounded a bit...well, conceited when I said that. JavaScript is definately no the easiest language to learn..I can guaruntee it. If you want a link to help you learn it, I'd try Earthweb.com's JavaScript Primers, by Joe Burns, PhD. This link taught me everything I know about JavaScript, for free! I believe it certainly could help you. Check it out here.
Hope this helped!
Thanks - I'll bookmark that one straight away. And perhaps I'll make that a two-year New Year resolution!
Bookmarks