Skip to contents

Creates an intermediate definition for a JSON date. This is typically used within s_map() to define fields that should contain date values.

Usage

s_date(format = "%Y-%m-%d")

Arguments

format

The date format string. This should be a single string that specifies the expected format of the date in the JSON data. The format should be compatible with the strftime function in R. For example, "%Y-%m-%d" for "2023-10-01".

Value

An intermediate list representing the date structure definition.