Validate the shape of an ISO calendar date.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_validate_date

Purpose

Validate the shape of an ISO calendar date.

Description

Checks the string pattern only; does not verify that the date exists.

Arguments

  • $1 — Candidate YYYY-MM-DD string.

Returns

  • 0 for a syntactically matching date string; 1 otherwise.

Usage

  sgnd_validate_date "2026-10-29"