Add an offset to a note property with the Date & Time type
date: 2017-05-15T10:00:00-08:00
Add a formula to a base and apply the format() function to the property
date.format("DD-MM-YYYY")
Did you follow the troubleshooting guide? [Y/N]
Yes.
Tested in sandbox mode.
Expected result
The date should be parsed and formatted correctly.
Actual result
Formula throws error Cannot find function "format" on type String
Environment
Obsidian version: v1.9.10
Installer version: v1.8.10
Operating system: Windows 10 Pro 10.0.19045
Login status: not logged in
Language: fr
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 0
Plugins enabled: 0
Additional information
The time offset property is displayed correctly when added as a regular column.
(For those keeping score at home, this works by taking the date (with offset), converting it to a string, splitting that into a list, rejoining the list to make a (new) string (without the offset), and then converting that string back to a date.)
That’s how I made it work date(date.toString().split("-",3).join("-")).format('DD MMMM YYYY, HH:mm')
It won’t work if I have dates with a + offset.