My date changes values when I format it to "yyyy-mm-dd". It becomes "2019-54-10" instead of keeping the correct DateTime.Now. Bellow is my code:
public static DateTime CurrentDate = DateTime.Now;
ConvertedCurrentDate = CurrentDate.ToString("yyyy-mm-dd");
mm stands for Minute
you have to use MM
CurrentDate.ToString("yyyy-MM-dd");