Bases: Datetime Properties Interpreted as Strings

Steps to reproduce

  1. Sandbox
  2. Add a created_at property, set it to Datetime
  3. Insert a base block
  4. Create a new formula “CTime”
  5. Try to extract just the date or time like created_at.time()

Screenshot from 2025-08-29 20-17-08

Did you follow the troubleshooting guide? [Y/N]

Yep, issue reproducible in empty sandbox.

Expected result

The date and time functions should work fine on Datetime properties.

Actual result

Formulas throw errors.

Screenshot from 2025-08-29 20-10-14

What’s really annoying is that you can’t use string functions without getting errors either, but despite the error toast message it does work.

Screenshot from 2025-08-29 20-06-24

Environment

SYSTEM INFO:
	Obsidian version: v1.9.12
	Installer version: v1.9.12
	Operating system: #1 SMP PREEMPT_DYNAMIC 2025-07-11 6.15.6-321.current
	Login status: logged in
	Language: en
	Catalyst license: vip
	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

RECOMMENDATIONS:
	none

Additional information

Related

This is (probably?) due to the same underlying issue with property types:

I also saw some around incorrect date sorting that might also be related.

This isn’t related to the general OS date formatting bugs/custom date formatting feature request, this is a Bases thing.

Does it work if you use DateTime without offset?

1 Like

Ah interesting, no errors without the time zone offset! So the bases Datetime parser gets confused by the timezone.

So the bug is the weird errors, and there should be a timezone support feature request?

So this is the same bug as the thread you linked and should be fixed 1.10.x https://forum.obsidian.md/t/datetime-with-offset-cant-be-formatted-with-date-format/104290

In general, we don’t support timezone in dates (yet). If there is a timezone, right now it’s ignored.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.