Click here to Skip to main content
15,896,513 members
Home / Discussions / C#
   

C#

 
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 
In my DataSet, I have a field called "ADMISSION_DATE" in the format of DateTime, which upon displaying in my Report showz up as, lets say, "08-29-08 12:00:00".

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

But I want only the date thing (i.e. 08-29-08). And in dataset I don't see any direct DATE conversion methods. Please help.


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


DateTime newDT = new DateTime();                         //Line-1
newDT = Convert.ToDateTime(row["ADMISSION_DATE"]).Date;  //Line-2
MessageBox.Show(newDT.ToShortDateString());              //Line-3

row["ADM_DATE"] = newDT.ToShortDateString();             //Line-4



Thanking you in anticipation.
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 
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 
AnswerRe: Convert DateTime to Date Pin
vikas amin31-Jul-08 12:04
vikas amin31-Jul-08 12:04 
GeneralRe: Convert DateTime to Date Pin
Verghese1-Aug-08 4:42
Verghese1-Aug-08 4:42 
GeneralRe: Convert DateTime to Date Pin
vikas amin1-Aug-08 5:20
vikas amin1-Aug-08 5:20 
GeneralRe: Convert DateTime to Date Pin
Verghese1-Aug-08 9:32
Verghese1-Aug-08 9:32 
GeneralRe: Convert DateTime to Date Pin
vikas amin4-Aug-08 4:36
vikas amin4-Aug-08 4:36 
GeneralRe: Convert DateTime to Date Pin
PIEBALDconsult1-Aug-08 5:32
mvePIEBALDconsult1-Aug-08 5:32 
GeneralRe: Convert DateTime to Date Pin
Verghese1-Aug-08 5:41
Verghese1-Aug-08 5:41 
GeneralRe: Convert DateTime to Date Pin
PIEBALDconsult1-Aug-08 15:25
mvePIEBALDconsult1-Aug-08 15:25 
GeneralRe: Convert DateTime to Date Pin
Verghese4-Aug-08 5:02
Verghese4-Aug-08 5:02 
AnswerRe: Convert DateTime to Date Pin
stancrm31-Jul-08 21:40
stancrm31-Jul-08 21:40 
QuestionMulti columns in Crystal Report Pin
mehrdadc4831-Jul-08 8:33
mehrdadc4831-Jul-08 8:33 
AnswerRe: Multi columns in Crystal Report Pin
Wendelius31-Jul-08 8:38
mentorWendelius31-Jul-08 8:38 

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.