R
Rich P
I am having a problem running an updaet sql string which contains the
following piece of sql
sql += "dateFld='" + item["dateFld"].ToString() + "' ";
the date is being formatted as Wed 2/1/2009 00:00:00 PDT
I hardcoded a date value like '2/1/2009' and this ran fine. So I am
thinking I need to format the date string in ToString. I tried
item["dateFld"].ToString("MM/dd/yyyy") + "'...
but C# complained. How to format the date here?
Thanks
Rich
following piece of sql
sql += "dateFld='" + item["dateFld"].ToString() + "' ";
the date is being formatted as Wed 2/1/2009 00:00:00 PDT
I hardcoded a date value like '2/1/2009' and this ran fine. So I am
thinking I need to format the date string in ToString. I tried
item["dateFld"].ToString("MM/dd/yyyy") + "'...
but C# complained. How to format the date here?
Thanks
Rich