Check c drive folder

hi, can i ask how to name my new folder the same month as one of the directory name in c drive. For example, from c drive, i have to check that the there is a folder named “2022 Folder”, i have to get the year, then from there i name the new folder as “2022 sheet”, if is “2023 Folder”, i name my new folder as “2023 sheet”.