Accessing task completion time values in dataviewjs

I think the easiest way to do date comparisons is actually to transform the dates into ISO 8601 dates, and use string comparison. If you want to do actual date comparisons you need to take working with either the correct DateTime functions or moment.js functions get it correct.

So the simplest solution for a case like yours could be showcased with this note:

- [x] #task a task completed today ✅ 2025-01-14
- [ ] Not completed

## Completed tasks

```dataviewjs
const tasks = dv.current()
  .file.tasks
  .where(t => t.completion?.toFormat("yyyy-MM-dd") == "2025-01-14")
dv.taskList(tasks, false)
```

Here I check any tasks in the current file, and for each of them I format the date (if present) to an ISO 8601 date string which I then compare to my target date string.