-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
Do you feel the
retval = "'" + sp.Value.ToString().Replace("'", "''") + "'";
is correct for DateTime?
I'm getting localized Dates in Greek when I use it via CommandAsSql library.
In the library code it also uses later on sb.Append("'").Append(Convert.ToDateTime(dr[colIndex]).ToString("yyyy-MM-dd HH:mm")).Append("'");
for handling structure types which seems more logical to use everywhere
I mean the .ToString("yyyy-MM-dd HH:mm") - not sure about the DateTimeOffset and DateTime2, guess for those too