Convert a RenderCV date value into the string YAMLResume expects.
RenderCV restricts these fields to YYYY, YYYY-MM, YYYY-MM-DD or the
literal present. YAMLResume accepts any string Date.parse understands, so
the value is passed through untouched, with present dropped because
YAMLResume renders an empty endDate as "Present".
Parameters
value: string|number
The date from RenderCV.
Returns string
The date string, or undefined when the field should be omitted.
Convert a RenderCV date value into the string YAMLResume expects.
RenderCV restricts these fields to
YYYY,YYYY-MM,YYYY-MM-DDor the literalpresent. YAMLResume accepts any stringDate.parseunderstands, so the value is passed through untouched, withpresentdropped because YAMLResume renders an emptyendDateas "Present".