I have had a couple of minor problems.. the first being an error relative to line 12 of inc_news_body.asp
response.write "<table align=""center"" width=""75%"" border=""1"" cellspacing =""0"">" ' dim i,cmdate,cmdate2 if strDBType = "mysql" then
as you can see I have commented this line out and all seems to work ok.. except..
I would like to change the way the date is displayed from 1/7/2007 to 7/1/2007 .. is the line I have commented out relative to this??
I would also like to change the font to "verdana, size 2(10pt)" to match in with the rest of the forum. If you could point me in the right direction I would be grateful.
I had a similar problem with the way the date is displayed. I live in the UK, my server is based in USA. Shaggy and HuwR spent a great deal of time helping to solve close issues that relate to date and time displays. What we did to solve most of the problem was to change the LCID to 2057 in the config.asp file. This routine will check server outputs for diffrent LCID
<html> <body> <% response.write("<p>") response.write("The default LCID for this page is: " & Session.LCID & "<br />") response.write("The Date format for the above LCID is: " & date() & "<br />") response.write("The Currency format for the above LCID is: " & FormatCurrency(350)) response.write("</p>")
Session.LCID = 2057
response.write("<p>") response.write("The LCID is now changed to: " & Session.LCID & "<br />") response.write("The Date format for the above LCID is: " & date() & "<br />") response.write("The Currency format for the above LCID is: " & FormatCurrency(350)) response.write("</p>") %> </body> </html> Save this text in a test.asp file and upload to server root then view it http://www.yourdomain.co.uk/test.asp
quote:Originally posted by thermal_seeker I would like to change the way the date is displayed from 1/7/2007 to 7/1/2007 .. is the line I have commented out relative to this??
No. What you need to do is replace all uses of the strtodate function in that file with the chkdate function.
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.”
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.”