Hello, I have created a computed column which concatenates a name and date.
My problem is that if the 10 is not 10 characters, I get an extra character
placed into the computed column. Here is the code that I have for the
expersion of the computed column...
dtCompetition.Columns["CompetitionNameDate"].Expression= ("trim
(CompetitionName) + ' ' + substring(convert
(EventStartDate,System.String),1,10)");
So if the date being presented is "4/4/2004" I get "4/4/2004 1". If i
change the instruction to only extract 9 characters, then it lops off the
year when the date is 10 characters.
EventStartDate is define as a dateTime variable, so if I just concatenate,
I get a the time information presented, which I do not want.
Is there some way to get around this problem?