Get the weekday from a date

Blitz3D Forums/Blitz3D Programming/Get the weekday from a date

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Oh yeah, I cooked this up in BlitzPlus way back when and I quickly grabbed the sample without realizing that it wouldn't work the same in Blitz3D.

Blitz3D doesn't handle strings passed to/from userlibs the same way BlitzPlus does.

What you have to do is something like this:
Change...
day$ = String(" ", 150)
...to...
day = Createbank(150)
...and:
...Len(day)
...to...
...BankSize(day)
...and then you would have to use PeekByte to get the text out of the bank before you print it. Yeah, it's more of a hassle. I'm not sure why Blitz3D doesn't work "quite right"...