BotBuilder-Samples
BotBuilder-Samples copied to clipboard
Convert datetimeV2 results to date, date-time, time or duration formats
The specific JSON schema formats are in a particular format and we need to add the logic to validate and convert datetimeV2 into those forms.
Date: "$comment": "TODO: We need to convert to YYYY-MM-DD https://tools.ietf.org/html/rfc3339#appendix-A",
"Dec 24th, 2012" -> 2012-12-24
Date-time: "$comment": "TODO: We need to convert to YYYY-MM-DDTHH:MM:SS[.FS] https://tools.ietf.org/html/rfc3339#appendix-A", "Dec 24th, 2012 at 4pm" -> 2012-12-24T04:00:00
duration: "$comment": "TODO: We need to convert to P[nY][nM][nD][T[nH][nM][nS]] "4 hours" => P4H
time: https://tools.ietf.org/html/rfc3339#appendix-A", HH:MM:SS[.FS][Z|+offset|-offset]