% Response.ExpiresAbsolute = dateadd("d", -5, date()) Response.Expires = -10 Function FormatStr(String) on Error resume next String = Replace(String, CHR(13), "") String = Replace(String, CHR(10) & CHR(10), "
")
String = Replace(String, CHR(10), "
")
FormatStr = String
End Function
'--------------------------------------------------
Function DtPrevSunday(ByVal dt)
Do While WeekDay(dt) > vbSunday
dt = DateAdd("d", -1, dt)
Loop
DtPrevSunday = dt
End Function
'--------------------------------------------------
function dNum(n)
if n >= 10 then
dNum = cstr(n)
Else
dNum = "0" & cstr(n)
End If
End Function
'SQL Formatted Date
Function SQLDate(dt)
SQLDate = cdbl(dt)
End Function
Sub diary(dtView,days)
if days > "" then
arDates = split(days, ",")
End if
dtToday = Date()
' Get fiobjRst day of month
dttmp = dtView
dtday = day(dttmp)
dttmp = dateadd("d", (-dtday+1), dttmp)
dtCurViewMonth = dttmp
%>
|
|||||||
| <%=WeekDayName(iDay, true)%> | <%Next %>|||||||
| " Done = true End If next if Done = false then Response.Write " | " Else Response.Write " | " End if Response.Write Day(dtCurViewDay) & "" Else Response.Write " | " End If Response.Write " | " & vbCrLf dtCurViewDay = DateAdd("d", 1, dtCurViewDay) Next Response.Write "||||
|
<%
data = Replace(data, ",", "", 1, 1)
if d = "" then d = now
diary d, data%> <% diary dateadd("m", 1, d), data %> <% 'diary dateadd("m", 2, d), "" %> |