By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,313 Members | 1,240 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,313 IT Pros & Developers. It's quick & easy.

Computed Column

P: n/a
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
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?
Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.