Free source code programming in C#, VB.Net, Java, SQL
SELECT Cast(GetDate() AS date)
Results:
2012-08-18