Change date from American format in ASP

This short ASP script will change the date in your database table from American format to a format which can be understood universaly.

OrderDate in the script refers to the column in the database table where the date is stored.

<%
'Change from American date format
If Day(DBOutput("OrderDate")) < 10 Then
'add a leading zero if date is single digit
Response.Write("0" & Day(DBOutput("OrderDate"))) & "

No Comments Posted in ASP, Web development
Tagged ,

Leave a Reply

Using Gravatars in the comments - get your own and be recognized!

XHTML: These are some of the tags you can use: <a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>