Click here to Skip to main content
15,888,733 members
Home / Discussions / C#
   

C#

 
GeneralRe: communication between two modem Pin
vanjier23-Aug-11 14:18
vanjier23-Aug-11 14:18 
GeneralRe: communication between two modem Pin
BobJanova22-Aug-11 3:39
BobJanova22-Aug-11 3:39 
GeneralRe: communication between two modem Pin
vanjier22-Aug-11 12:59
vanjier22-Aug-11 12:59 
Questioncreate table in email body Pin
md_refay19-Aug-11 19:14
md_refay19-Aug-11 19:14 
AnswerRepost Pin
thatraja19-Aug-11 19:40
professionalthatraja19-Aug-11 19:40 
AnswerRe: create table in email body Pin
DaveAuld19-Aug-11 19:55
professionalDaveAuld19-Aug-11 19:55 
AnswerRe: create table in email body Pin
GDinesh20-Aug-11 3:11
GDinesh20-Aug-11 3:11 
QuestionFormatting a DateTime object/String to only show yyyy/mm/dd [modified] Pin
stephen.darling19-Aug-11 1:52
stephen.darling19-Aug-11 1:52 
Hi,

I have a DateTime object, and my code correctly sets the year/month and day from a DateTime picker controll on my form.

When I return the object and use .ToString, I get the following output:

19/08/2011 00:00:00


Now, I am not using or setting the time, so it is always 00:00:00.

My question is how do I remove this time part from the string?

1) Is there a method from the DateTime object to do this, or,
2) Do I need to do this once I convert to string, and if so how?

Thank you in advance,
Regards,

Stephen

**EDIT Found out. .ToString(format code) **

modified on Friday, August 19, 2011 8:00 AM

AnswerRe: Formatting a DateTime object/String to only show yyyy/mm/dd Pin
loyal ginger19-Aug-11 2:09
loyal ginger19-Aug-11 2:09 
GeneralRe: Formatting a DateTime object/String to only show yyyy/mm/dd Pin
V.19-Aug-11 2:12
professionalV.19-Aug-11 2:12 
GeneralRe: Formatting a DateTime object/String to only show yyyy/mm/dd Pin
BobJanova19-Aug-11 4:25
BobJanova19-Aug-11 4:25 
GeneralRe: Formatting a DateTime object/String to only show yyyy/mm/dd Pin
Mirko198019-Aug-11 2:17
Mirko198019-Aug-11 2:17 
AnswerRe: Formatting a DateTime object/String to only show yyyy/mm/dd PinPopular
OriginalGriff19-Aug-11 2:46
mveOriginalGriff19-Aug-11 2:46 
GeneralRe: Formatting a DateTime object/String to only show yyyy/mm/dd Pin
stephen.darling19-Aug-11 3:46
stephen.darling19-Aug-11 3:46 
GeneralRe: Formatting a DateTime object/String to only show yyyy/mm/dd Pin
Simon Bang Terkildsen20-Aug-11 4:06
Simon Bang Terkildsen20-Aug-11 4:06 
AnswerRe: Formatting a DateTime object/String to only show yyyy/mm/dd Pin
Simon Bang Terkildsen19-Aug-11 5:33
Simon Bang Terkildsen19-Aug-11 5:33 
QuestionConvert .msg to image format Pin
Tanuja12319-Aug-11 1:07
Tanuja12319-Aug-11 1:07 
GeneralRe: Convert .msg to image format [modified] Pin
Shameel19-Aug-11 4:57
professionalShameel19-Aug-11 4:57 
GeneralRe: Convert .msg to image format Pin
Not Active19-Aug-11 7:56
mentorNot Active19-Aug-11 7:56 
GeneralRe: Convert .msg to image format Pin
Shameel19-Aug-11 8:51
professionalShameel19-Aug-11 8:51 
GeneralRe: Convert .msg to image format Pin
BillWoodruff19-Aug-11 18:24
professionalBillWoodruff19-Aug-11 18:24 
GeneralRe: Convert .msg to image format Pin
Not Active20-Aug-11 3:11
mentorNot Active20-Aug-11 3:11 
GeneralRe: Convert .msg to image format Pin
Shameel20-Aug-11 8:22
professionalShameel20-Aug-11 8:22 
GeneralRe: Convert .msg to image format Pin
Not Active20-Aug-11 18:29
mentorNot Active20-Aug-11 18:29 
GeneralRe: Convert .msg to image format Pin
Shameel20-Aug-11 21:39
professionalShameel20-Aug-11 21: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.