After posting this I finally figured the solution out. I used the following as my SQL statement and it works perfectly:
SELECT DATE_FORMAT(w.date, GET_FORMAT(DATE,'EUR')) AS date
FROM etc...
This replaced:
SELECT w.date
FROM etc...
I hope this helps others who are looking for similar solutions. The website for the syntax etc. is:
http://dev.mysql.com/doc/mysql/en/da...functions.html