I have a database where dates are stored in YYYY-MM-DD format. Is there an SQL query or a simple method using only PHP or javascript that I can use to get the calendar day (Monday, Tues, etc) from the YYYY-MM-DD date?
I tried searching the site for examples, but they all use functions or libraries that are exclusive to Java or C or something.
You did not specify what RDBMS but your previous question was MySQL. If you are using MySQL, then you can use
DATE_FORMAT():See SQL Fiddle with Demo, just replace
sysdate()with your date column