Can you edit the date created and modified times on notes with the Obsidian API?

I looked it up and didn’t find any answers.

Have you searched the doc by “ctime” or “mtime”?

I found the app.vault.modifiy() function here but I’m not sure how to write the mtime for the note. I tried this but it doesn’t seem to work:

let file = app.workspace.getActiveFile();
app.vault.modify(file, String(await app.vault.read(file)), { mtime: 1703434905 });

Someone on Discord said that app.vault.modify() can’t change the times, but I want to hear if anyone has other thoughts, on this post: Can you change a note's date and modified times with app.vault.modify()?