Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21338

Is there a way to get the date of the week of?

$
0
0
Hi everyone. I am working on a prog, that would let teachers view student work that they did on a specific day. I use this to get different bits of info about the day, just so the prog knows what day to load the student work for.

WeekDay.Caption = Format(Date, "dddd")
Yearlbl.Caption = Year(Now)
DayNum.Caption = Day(Now)
MonthNames.Caption = MonthName(Month(Now))


This works great for my needs for a day, but now I am working on a way to get the days for an entire week from Monday - Friday.

So say my program wanted to display the days of the week for the week of Monday Feb 25, to Friday Mar 1, does VB have that option?

I have 5 labels on my form.

MondayLBL
TuesdayLBL
WednesdayLBL
ThursdayLBL
FridayLBL

I am wondering about getting the number for each day of that given week. Can VB6 do that? Thanks!

Viewing all articles
Browse latest Browse all 21338

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>