Format dates in SQL, add specs for literal formatting