Is there a way to get the day of the week when supplied with a date?

usign the date() function ie how do i find out what day of the week it is e.g. Monday, Tuesday, Wednesday, Thursday, etc ?

Use the Weekday(date,[firstdayofweek]) function, it'll return a number from 1 to 7 where 1=Sunday and 7 = Saturday.

This will give you a word for the name of the day.


Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.