troubleshooting Question

Determine if a date is a Saturday or Sunday

Avatar of Crazy Horse
Crazy HorseFlag for South Africa asked on
PHP
3 Comments3 Solutions73 ViewsLast Modified:
If I have a bunch of dates stored in a database in this format:

2017-03-27

is it possible to query whether that day was a Saturday or Sunday?

So, in English terms I would want to do something like, IF 2017-03-27 was a Saturday OR Sunday then do something, else do something else if it wasn't.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 3 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros