I heard you also asked here:

https://social.technet.microsoft.com/Forums/windowsserver/en-US/1aadbb6f-f608-426d-9dab-c28707e93e62/convert-variant-value-to-datetime-value?forum=winserverpowershell

Can you share you (sanitized) code?

If you post code, please use the ‘Insert Code’ button. Please and thank you!

codebutton_small.png