Click here to Skip to main content
15,905,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: monitor Http traffic Pin
George_George3-Aug-08 17:49
George_George3-Aug-08 17:49 
GeneralRe: monitor Http traffic Pin
Simon P Stevens3-Aug-08 21:44
Simon P Stevens3-Aug-08 21:44 
GeneralRe: monitor Http traffic Pin
Simon P Stevens3-Aug-08 21:45
Simon P Stevens3-Aug-08 21:45 
GeneralRe: monitor Http traffic Pin
George_George4-Aug-08 19:28
George_George4-Aug-08 19:28 
GeneralRe: monitor Http traffic Pin
J4amieC1-Aug-08 0:40
J4amieC1-Aug-08 0:40 
GeneralRe: monitor Http traffic Pin
George_George3-Aug-08 17:39
George_George3-Aug-08 17:39 
QuestionHow to get audio from webcam in C#?? Pin
hweontey31-Jul-08 16:18
hweontey31-Jul-08 16:18 
AnswerRe: How to get audio from webcam in C#?? Pin
Christian Graus31-Jul-08 17:02
protectorChristian Graus31-Jul-08 17:02 
QuestionCodePrimitiveExpression Class Pin
AndieDu31-Jul-08 15:33
AndieDu31-Jul-08 15:33 
AnswerRe: CodePrimitiveExpression Class Pin
Simon P Stevens31-Jul-08 21:52
Simon P Stevens31-Jul-08 21:52 
QuestionWhat is ldexpl in .net? Pin
threemp331-Jul-08 13:32
threemp331-Jul-08 13:32 
AnswerRe: What is ldexpl in .net? Pin
AhsanS31-Jul-08 19:14
AhsanS31-Jul-08 19:14 
AnswerRe: What is ldexpl in .net? Pin
AhsanS31-Jul-08 19:17
AhsanS31-Jul-08 19:17 
Questioncenter picturebox inside panel Pin
nelsonpaixao31-Jul-08 12:33
nelsonpaixao31-Jul-08 12:33 
AnswerRe: center picturebox inside panel Pin
Christian Graus31-Jul-08 13:43
protectorChristian Graus31-Jul-08 13:43 
AnswerRe: center picturebox inside panel Pin
Guffa31-Jul-08 14:53
Guffa31-Jul-08 14:53 
Questionlink a text in a TextBox or richTextBox Pin
EhabAnshad31-Jul-08 12:00
EhabAnshad31-Jul-08 12:00 
AnswerRe: link a text in a TextBox or richTextBox Pin
vikas amin31-Jul-08 12:10
vikas amin31-Jul-08 12:10 
QuestionCan't debug CLR locally in VS 2008 Pin
JMichael246831-Jul-08 10:54
JMichael246831-Jul-08 10:54 
QuestionConvert DateTime to Date Pin
Verghese31-Jul-08 8:59
Verghese31-Jul-08 8:59 
AnswerRe: Convert DateTime to Date Pin
Wendelius31-Jul-08 9:19
mentorWendelius31-Jul-08 9:19 
AnswerRe: Convert DateTime to Date Pin
Guffa31-Jul-08 9:46
Guffa31-Jul-08 9:46 
A DateTime value always has a time component, even if it's zero. The Date property returns a DateTime value where the time component is set to zero, just as you do in line 2.

Verghese wrote:
row["ADMISSION_DATE"] = DateTime.Parse(row["MM"].ToString() + "/" + row["DD"].ToString() + "/" + row["CC"].ToString() + row["YY"].ToString().ToString()) ;


If you already have the components of the date as numbers, don't format them into a string just to parse into a date. There is a perfectly good constructor for the DateTime structure that takes numbers:

row["ADMISSION_DATE"] = new DateTime((int)row["CC"] * 100 + (int)row["YY], (int)row["MM"], (int)row["DD"]);

Verghese wrote:
3rd Line displays the Date (08-30-08) as required but 4th line displays it as DateTime (08-29-08 12:00:00).


You are storing a string in the field, so if you display it as it is, it can't display in any other way than the way that you formatted it. The only chance that it would display with a time component, is if it's parsed into a DateTime value and the formatted into a string again using a different format.

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

GeneralRe: Convert DateTime to Date Pin
Verghese31-Jul-08 11:45
Verghese31-Jul-08 11:45 
GeneralRe: Convert DateTime to Date Pin
Guffa31-Jul-08 14:38
Guffa31-Jul-08 14:38 
AnswerRe: Convert DateTime to Date Pin
PIEBALDconsult31-Jul-08 10:51
mvePIEBALDconsult31-Jul-08 10:51 

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.