Dates
This demo covers the Tripous date helper functions. They work with native JavaScript
Date values and provide validation, date creation, date parts, date arithmetic,
comparison, start/end of day helpers, and culture-aware text parsing.
The arithmetic and clear helpers modify the Date instance passed to them. Use
tp.DateClone() first when the original date must be preserved. Date display formatting
is covered in the focused Format demo.
Checks, creation and parts
Use these helpers to validate dates, clone dates, inspect day/month information, and check leap years.
Arithmetic and mutation
AddYears, AddMonths, AddDays,
AddWeeks, AddHours, AddMinutes, and
AddSeconds modify the passed date.
Comparison and day boundaries
Compare two dates, test a date against a range, and produce start/end of day values for filtering and date-range logic.
Parsing and normalization
TryNormalizeDateText, TryParseDateTime, and
ParseDateText parse ISO-like dates and culture-pattern dates.