escfoe2 Posted September 24, 2011 Author Share Posted September 24, 2011 I'm trying to implement a calendar into my game. So here's my question.Okay, so if you click on your computers built in calendar it will bring up your current month. When you look at that calendar it shows all the days and such. I'm trying to find the day of the week DAY 1 falls on. As in September 2011, DAY 1 falls on a Thursday. My question is, how do I figure that out? How do i find the day of the week DAY 1 falls on for each month using vb6?P.S. The first person to solve this wins a BRAND NEW CHEVY!!!!!!No not really but I'll give ya an electronic hug lol <-(^-^)-> Link to comment Share on other sites More sharing options...
Rithy58 Posted September 24, 2011 Share Posted September 24, 2011 Something like this?http://5dspace-time.org/Calendar/Algorithm.htmlSincerely,Rithy Link to comment Share on other sites More sharing options...
escfoe2 Posted September 24, 2011 Author Share Posted September 24, 2011 Close, but no cigar. I need and only need DAY 1 and where it starts in the week of that month. Example would be:```Call FirstDay(11)Sub FirstDay(ByVal Month as Integer) Call MsgBox("The beginning day of " & Month & " falls on a " & DayItFallsOn) ' Month = November ' First day of that month falls on a Tuesday. I used the Windows calendar to find that out. ' However, I have no idea how to calculate and retrieve this information in vb6End Sub```Now either that website didn't have the right information, or I'm too stupid to understand. lol not really, but it describes somewhat what I'm looking for however, I DON'T KNOW the vb6 procedures to get this data. Link to comment Share on other sites More sharing options...
escfoe2 Posted September 24, 2011 Author Share Posted September 24, 2011 Well I figured it out =D```WeekDay(DateSerial(year, month, 1))``` Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now