Monday, January 28, 2008
« Isn't more protein better? | Main | 'energy' food »
posted by: Martin

So I like to write my dates in the format of day-month-year, is that so bad? It must be the Euro half of my heritage showing its face. Or just that I want to be difficult/different - who knows.

Anyway, with the help of a co-worker (Naasir) I figured out how to do this in ASP. Here is the code:

<%
session.lcid=2057
Response.Write FormatDateTime( Now(), 2)
%>

And here is the Microsoft KB article that showed me how:

http://support.microsoft.com/kb/306044

Now I can do stuff like always have a current copyright date in the footer which appears at the bottom of all my web pages.

Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, b, i, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview