Retroactively importing notes, need to use tittle as date

Things I have tried

What I’m trying to do

New to obsidian and want to bring in my journal. Assuming that I have already created md files for each day I journaled and that the file names match the date format of my Daily Notes, how do I use dataviewjs to query them? because the date function reads created date which is not accurate. How can I assign note date from the tittle of the md file?