M
Mike
Hi,
I have DateTime filed in db table. I'd like to search my db based on
DateTime filed, actually to list all rows with particular date, for
e.g. 16.11.2007...
I send string to method for. eg. 16.11.2007 --> short date and convert
that to DateTime. After conversion it looks like 16.11.2007 0:00:00
How I can get short date like 16.11.2007 without 0:00:00 after
conversion with Convert.ToDateTime(MyDate)
I have tried
Convert.ToDateTime(MyDate).Date
without success
How I can do that?
Thanks
I have DateTime filed in db table. I'd like to search my db based on
DateTime filed, actually to list all rows with particular date, for
e.g. 16.11.2007...
I send string to method for. eg. 16.11.2007 --> short date and convert
that to DateTime. After conversion it looks like 16.11.2007 0:00:00
How I can get short date like 16.11.2007 without 0:00:00 after
conversion with Convert.ToDateTime(MyDate)
I have tried
Convert.ToDateTime(MyDate).Date
without success
How I can do that?
Thanks