1. Inside the quartz.config.ts I made the following changes
Plugin.CreatedModifiedDate({
priority: ["git", "frontmatter", "filesystem"],
})
  1. In the same file
defaultDateType: "modified"