Get the date portion (YYYY-MM-DD) of value as a date string.
YYYY-MM-DD
value
getDateString(new Date('2024-01-15T10:30:00Z')); // '2024-01-15' Copy
getDateString(new Date('2024-01-15T10:30:00Z')); // '2024-01-15'
Get the date portion (
YYYY-MM-DD) ofvalueas a date string.