Oct 12, 2015
Not sure what you mean with "the sql isn't surrounding the datetime values".
Do you mean quotes or square brackets?
Also, your sample code does not show anything about obj, so there is not much we can tell you.
Could you include the obj class definition and the values assigned?