troubleshootingcenter.com
Simple Code in C# to Convert DateTime object to the “datetime-local” type used in input controls with MongoDB Driver
As the title suggests, the following code converts a DateTime object to the “datetime-local” type used in HTML5 input controls (i.e. format 2016-10-30T00:00:00.00). I developed this wh…