I have a variable date which is a string that needs to be in this format "yyyy-mm-dd" and i get the data from a variable of type CALENDAR so when the month or the day