I want to convert the DateTime.Now to the format of yyyy-mm-dd since that is the only format that i can use in my query that i want to include. The default
yyyy-mm-dd
Your miss is lower-case "m" in second format, that determine MINUTES, but you need "M" instead of "m" for MONTHS.