Calculate days issue on IOS

Author: searichCreated May 29, 2026Updated May 29, 2026
Labelsbugmobile

Does date calculation work in the iOS app?

I have two code snippets that work well in the Windows app but not in the iOS app - "Where condition"

dataview
	Table subjects AS Subjects
	WHERE file.cday >= date(today) - dur(7 days)  # 
	SORT file.cday ASC
dataviewjs
dv.span(` ${
  dv.pages()
    .where(p => p.file.cday >= dv.date("today") - dv.duration("7 days"))  # 
    .length
} notes this week`)

Dataview Version

latest

Obsidian Version

1.12.7 (303)

Device

iPhone 16

OS

latest

Source: blacksmithgu/obsidian-dataview