every day show Monday and Friday of the week on a form 
Author Message
 every day show Monday and Friday of the week on a form

I am new at ASP. I had to add a date format to a form that employees print
out any day of the week. It always had to show the Monday and Friday of the
current workweek.

I did this and so far it works fine but I am not sure why.

Dim KcmDate, MonDay, FriDay
KcmDate = CDate(FormatDateTime(Now,2))
MonDay = KcmDate + 1 - (WeekDay(KcmDate, vbMonday))
Friday = MonDay + 4

For the week of Monday <%Response.Write (MonDay) & " - Friday " & (Friday)%>

Any other simpler ideas to do the same thing?

ken miller

Sun, 20 Jul 2003 12:49:57 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Showing Monday to Friday Week

2. How to show monday of this week on a form

3. Anyone knows how to convert a day function (11) to a stnadard day format (friday 11th)

4. Date of Monday actual week

5. How to get this week's Monday date

6. Grid of days of week and time of day

7. Wrong week number for last monday

8. Get snapshot of report from Access 2000 every Friday and email automatically

9. Send same departmental mail notice every Friday

10. if day = friday

11. How to update Access database automatically every week?

12. More free code - Day of the week


Powered by phpBB® Forum Software