reformat eoMonth() function

reformat eoMonth() function

I am trying to get the eoMonth() to produce year-month-day since that is the only accepted input in my flow for updating a module to accept a date. However using this function shows month-day-year. 

Is there anyway to resolve this?