Have two date prompts and want to default them both to Jan 1st of current year

I’ve two date prompts and want to default them both to Jan 1st of current year. Used the following java script to do that but unfortunately only one prompt is default to 1st of Jan. not the other one? Any suggestions please?