Documentation
¶
Overview ¶
Package dateparse provides utilities for parsing relative and absolute date strings into ISO 8601 (YYYY-MM-DD) format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDate ¶
ParseDate parses a date input string and returns an ISO 8601 date (YYYY-MM-DD). Uses the current time as the reference point.
Supported formats:
- Exact dates: "2026-03-01"
- Relative days: "+7d"
- Relative weeks: "+2w"
- Relative months: "+1m"
- Day names: "monday", "tuesday", etc. (next occurrence)
- Keywords: "today", "tomorrow", "next-week", "next-month"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.