Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<%
response.write "Pay periods<hr>"
dim dStartDate
dim dEndDate
dStartdate = date()
if day(dStartDate) > 15 then
'Last pay period THIS month
dStartDate = dateserial( year(date()),month(date()), 1)
else
'Last pay period PREVIOUS month
dStartDate = dateadd( "m", -1, date() )
dStartDate = dateserial( year(dStartDate), month( dStartDate), 16)
end if
dEndDate = dateadd("d", 14, dStartDate)
do while dEndDate > dateadd("d", -365, date())
response.Write dStartDate & " - " & dEnddate & "<br>"
dEndDate = dateadd( "d", -1, dStartdate )
if day(dEndDate) > 16 then
dStartDate = dateserial( year(dEndDate), month( dEndDate), 16)
else
dStartDate = dateserial( year(dEndDate), month( dEndDate), 1)
end if
loop
%>