How can I make date from some string

I want to make date from this two value to put it to database. So I have

and I want to make INSERT with value 2021-09-1, daytime doesn't matter
How can I do this?

Hey @cinnamon9

You should try something like:
{{moment((year.value+" "+ month.value)).format("YYYY-MM-DD")}}

This will give you the value you are looking for I think (haven't tested it out so you might have to change it around a bit)