Browsing the archives for the ASP tag

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″ [...]

No Comments Posted in ASP, Web development
Tagged ,