Click here to Skip to main content
14,842,061 members
Home / Discussions / C#
   

C#

 
Questionlink a text in a TextBox or richTextBox Pin
EhabAnshad31-Jul-08 12:00
MemberEhabAnshad31-Jul-08 12:00 
AnswerRe: link a text in a TextBox or richTextBox Pin
vikas amin31-Jul-08 12:10
Membervikas amin31-Jul-08 12:10 
QuestionCan't debug CLR locally in VS 2008 Pin
JMichael246831-Jul-08 10:54
MemberJMichael246831-Jul-08 10:54 
QuestionConvert DateTime to Date Pin
Verghese31-Jul-08 8:59
MemberVerghese31-Jul-08 8:59 
AnswerRe: Convert DateTime to Date Pin
Wendelius31-Jul-08 9:19
mveWendelius31-Jul-08 9:19 
AnswerRe: Convert DateTime to Date Pin
Guffa31-Jul-08 9:46
MemberGuffa31-Jul-08 9:46 
GeneralRe: Convert DateTime to Date Pin
Verghese31-Jul-08 11:45
MemberVerghese31-Jul-08 11:45 
GeneralRe: Convert DateTime to Date Pin
Guffa31-Jul-08 14:38
MemberGuffa31-Jul-08 14:38 
Yes, you are storing a DateTime value in the field, and the value has a time component that is zero. Then you read the field, convert the DateTime value to a DateTime value, and use the Date property to get a DateTime value where the time component is zero from the DateTime value where the time component already is zero. Then you convert the value into a string using a format that does not even include the time component that is zero.

As the value that you finally store as a string in a field doesn't have any time information at all, the problem is not in the code that you have shown. As I said before, the only chance that this value is displayed with a time, is if it's once again parsed into a DateTime value and then formatted into a string with a different format.

Despite everything, the person most likely to be fooling you next is yourself.

AnswerRe: Convert DateTime to Date Pin
PIEBALDconsult31-Jul-08 10:51
professionalPIEBALDconsult31-Jul-08 10:51 
AnswerRe: Convert DateTime to Date Pin
vikas amin31-Jul-08 12:04
Membervikas amin31-Jul-08 12:04 
GeneralRe: Convert DateTime to Date Pin
Verghese1-Aug-08 4:42
MemberVerghese1-Aug-08 4:42 
GeneralRe: Convert DateTime to Date Pin
vikas amin1-Aug-08 5:20
Membervikas amin1-Aug-08 5:20 
GeneralRe: Convert DateTime to Date Pin
Verghese1-Aug-08 9:32
MemberVerghese1-Aug-08 9:32 
GeneralRe: Convert DateTime to Date Pin
vikas amin4-Aug-08 4:36
Membervikas amin4-Aug-08 4:36 
GeneralRe: Convert DateTime to Date Pin
PIEBALDconsult1-Aug-08 5:32
professionalPIEBALDconsult1-Aug-08 5:32 
GeneralRe: Convert DateTime to Date Pin
Verghese1-Aug-08 5:41
MemberVerghese1-Aug-08 5:41 
GeneralRe: Convert DateTime to Date Pin
PIEBALDconsult1-Aug-08 15:25
professionalPIEBALDconsult1-Aug-08 15:25 
GeneralRe: Convert DateTime to Date Pin
Verghese4-Aug-08 5:02
MemberVerghese4-Aug-08 5:02 
AnswerRe: Convert DateTime to Date Pin
stancrm31-Jul-08 21:40
Memberstancrm31-Jul-08 21:40 
QuestionMulti columns in Crystal Report Pin
mehrdadc4831-Jul-08 8:33
Membermehrdadc4831-Jul-08 8:33 
AnswerRe: Multi columns in Crystal Report Pin
Wendelius31-Jul-08 8:38
mveWendelius31-Jul-08 8:38 
QuestionInstantiating a static class at application start? Pin
Duncan Edwards Jones31-Jul-08 6:02
professionalDuncan Edwards Jones31-Jul-08 6:02 
AnswerRe: Instantiating a static class at application start? Pin
User 665831-Jul-08 6:20
MemberUser 665831-Jul-08 6:20 
GeneralRe: Instantiating a static class at application start? Pin
Duncan Edwards Jones31-Jul-08 6:29
professionalDuncan Edwards Jones31-Jul-08 6:29 
GeneralRe: Instantiating a static class at application start? Pin
User 665831-Jul-08 6:39
MemberUser 665831-Jul-08 6:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.