Removing time values from Date & time properties clears entire value

Steps to reproduce & Actual result

  1. Create a new vault, or enter the sandbox vault.
  2. Add a property to any note, ensuring it is of the ‘Date & time’ type, and fill it with an arbitrary value.
  3. Save the file. Then for the hours, minutes and AM/PM fields, highlight and press Del on each of them to turn them to --.
  4. Switch the viewer to Source mode. The value of the property will display as "".
  5. Close and re-open the note. The value of the property will display as Invalid date in the Live Preview.
  • Did you follow the troubleshooting guide?

Expected result

The Date & time property type should be resilient to all date and time values of differing specificity, so long as they contain the correct pieces of information. For example:

  • dd/mm/2025 --:–:-- – → 2025
  • dd/02/2025 --:–:-- – → 2025-02
  • 01/02/2025 --:–:-- – → 2025-02-01
  • 01/02/2025 03:–:-- PM → 2025-02-01T15
  • 01/02/2025 03:04:-- PM → 2025-02-01T15:04
  • 01/02/2025 03:04:05 PM → 2025-02-01T15:04:05

Environment

SYSTEM INFO:
	Obsidian version: v1.7.7
	Installer version: v1.6.3
	Operating system: Windows 10 Home 10.0.19045
	Login status: not logged in
	Language: en
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none