visual basic dates

pcg79

One of Freddy's beloved
Joined
Dec 22, 2003
Messages
694
hi

as part of my computing project im making a program in VB. im going to use the vb functions to mess around with dates - but when i get the weekdayname of a date, the day it gives me is one late. for example, i put in 21/02/04 and it gave me Sunday?! any ideas how to fix? (yes my windows clock IS right)
 

Jazz

Fledgling Freddie
Joined
Dec 23, 2003
Messages
8
Iirc...

It's been a while since I did VB6 stuff (.NET is nicer!!! BUY!!!) but, if I remember right, the WeekDayName function doesn't return the same values as the standard VB WeekDay enumeration uses... so those values will be out by 1.

Then again, maybe I'm talking bollocks, and I'm a month late now anyway. But it's worth a check ;)
 

Users who are viewing this thread

Top Bottom