Author |
Topic |
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 06 September 2008 : 04:04:32
|
Reading through this thread, there are slight indications of the way date format may have caused problems and it has been fixed. On the pages displayed the date format is in dd/mm/yyyy 06/09/2008 and I was wondering if we could format the way the date displays to being it inline with the rest of the forum dates ie 06 Sept 2008 There is a date string <%=DateAdd("d",(-1*StrIpgateExp), date())%> I have tried surrounding the date() and whole string with ChkDate but can not get the dates to display the same as the rest of the forum. Any assistance to resolve date display issue, would be appreciated< |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 06 September 2008 : 04:34:39
|
you need to do something like chkDate(DateAdd("d",(-1*StrIpgateExp), date())," ",true)< |
|
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 06 September 2008 : 11:41:20
|
Huwr, I did try that initially but got the following error: Microsoft runtime error 800a000d Type mismatch: [string: 9/' /forum/inc_func_common.asp, line 870
inc_func_common.asp line 870 in red: case "dmmmy" chkDate = Mid(fDate,7,2) & " " & _ Monthname(Mid(fDate,5,2),0) & " " & _ Mid(fDate,1,4)
I don't know whether the date display within the <%= %> has anything to with the error
This is the line of code I am working with: <td width="503" align="left" valign="baseline" <%=forumtable%>> <%= forumfont%>Records older than <%=DateAdd("d",(-1*StrIpgateExp), date())%> will be cleared<%= endfont %></td> Thank you Andy Edit: admin_ipgate.asp text link added< |
Edited by - Andy Humm on 06 September 2008 11:42:10 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 06 September 2008 : 12:06:01
|
oops sorry, I completely missed a bit out. should have been
chkDate(DateToStr(DateAdd("d",(-1*StrIpgateExp), date()))," ",true)
< |
|
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 06 September 2008 : 12:26:38
|
Thanks Huwr all okay, just changed the true to false to hide the hrs:min:secs< |
Edited by - Andy Humm on 06 September 2008 12:26:53 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 06 September 2008 : 13:06:25
|
cool < |
|
|
Topic |
|