D
David Lozzi
Howdy,
Happy 2007!!
Here's my issue and it seems so simple, but it escapes me. I'm using asp.net
2.0 and a gridview. There is one column which is a date. In SQL this field
is a smalldatetime and only has a date specified, i.e. 1/2/2007. When it
displays on the page, it is adding 12:00:00 AM. I can't for the life of my
format this stupid thing. I tried using the DataFormatString but didn't know
the syntax so I tried using a TemplateField with a label and something like
<%# FormatDateTime(Bind("dtDate"),"mm/dd/yyyy") %> but then it errors
stating Bind is not declared.
<cowering in corner shaking /> please help
Thanks,
David Lozzi
Happy 2007!!
Here's my issue and it seems so simple, but it escapes me. I'm using asp.net
2.0 and a gridview. There is one column which is a date. In SQL this field
is a smalldatetime and only has a date specified, i.e. 1/2/2007. When it
displays on the page, it is adding 12:00:00 AM. I can't for the life of my
format this stupid thing. I tried using the DataFormatString but didn't know
the syntax so I tried using a TemplateField with a label and something like
<%# FormatDateTime(Bind("dtDate"),"mm/dd/yyyy") %> but then it errors
stating Bind is not declared.
<cowering in corner shaking /> please help
Thanks,
David Lozzi