Validityperiod option in API call

Has anybody had any success in setting the validityperiod option on the updateshare API? I have attempted to format the date in several different ways, mirroring the output of this option on the response from getting the properties of another folder.

It either creates and “invalid” share (red share icon) or it does not allow me to modify the share settings after updated.

Thanks!

This can be done using this POST parameters:
shareid=5f9940b4f2d1cd2b8c000d4
validityperiod=Sat%20Oct%2031%202020