I’m calling an IronPython script and passing it a .NET object that contains a DateTime structure.
I’m trying to use IronPython’s JSON support to serialize the object as JSON.
Everything works great until I encounter the .NET DateTime.
How do I convert from the .NET DateTime to the IronPython datetime?
Anticipating that people might like to convert between these we actually make it really easy: