Forums
This topic is locked
'DreamweaverCtrls.DataSet'
Posted 04 Jun 2003 22:14:04
1
has voted
04 Jun 2003 22:14:04 Kelly Brady posted:
I am trying to display just the date from a column in my DB SQL2000 thats of datatype datetime. In dreamweaver it displays the whole field. This would normaly work in .net :<%# RecentJobs.Eval(Container.DataItem, "StartDate", "{0:MM/dd/yy}"

But dreamweaver does not likey:
BC30456: 'Eval' is not a member of 'DreamweaverCtrls.DataSet'.
Replies
Replied 13 Jun 2003 01:53:55
13 Jun 2003 01:53:55 Charles Stratton replied:
if your using dreamweaver generated code then go to the bindings panel and click the down arrow on the format column. then pick the date format that you want. if not using dreamweaver generated code then try something like this:
DateTime.Parse(dsUpdateProject.FieldValue("Target Date", Container)).ToString("y"
DateTime.Parse(dsUpdateProject.FieldValue("Target Date", Container)).ToString("y"
