J
jack
Hello,
I have a date in a SQL Database and want to use the dateformat tools to
format the output. I am now using the Month, Day, and Year to do it now.
I want to change:
Released Date: <%#Month(DataBinder.Eval(Container.DataItem, "ProdDate"))
& "/" & Day(DataBinder.Eval(Container.DataItem, "ProdDate")) & "/" &
Year(DataBinder.Eval(Container.DataItem, "ProdDate")) %><BR><BR>
To:
Released Date: <%#DataBinder.Eval(Container.DataItem,
"ProdDate").ToString("d")%><BR><BR>
But I get an error.
Any help would be great!!!
Thanks for you time and help,
Jack
I have a date in a SQL Database and want to use the dateformat tools to
format the output. I am now using the Month, Day, and Year to do it now.
I want to change:
Released Date: <%#Month(DataBinder.Eval(Container.DataItem, "ProdDate"))
& "/" & Day(DataBinder.Eval(Container.DataItem, "ProdDate")) & "/" &
Year(DataBinder.Eval(Container.DataItem, "ProdDate")) %><BR><BR>
To:
Released Date: <%#DataBinder.Eval(Container.DataItem,
"ProdDate").ToString("d")%><BR><BR>
But I get an error.
Any help would be great!!!
Thanks for you time and help,
Jack