Click here to Skip to main content
15,891,253 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help on Writing Image Information(Location/Descriptions) to a txtfile Pin
Thomas Toh1-May-08 4:25
Thomas Toh1-May-08 4:25 
QuestionReturn Value Pin
MumbleB1-May-08 1:16
MumbleB1-May-08 1:16 
AnswerRe: Return Value Pin
Anthony Mushrow1-May-08 1:24
professionalAnthony Mushrow1-May-08 1:24 
GeneralRe: Return Value Pin
MumbleB1-May-08 1:41
MumbleB1-May-08 1:41 
GeneralRe: Return Value Pin
Anthony Mushrow1-May-08 1:48
professionalAnthony Mushrow1-May-08 1:48 
GeneralRe: Return Value Pin
Spacix One1-May-08 9:00
Spacix One1-May-08 9:00 
RantRe: Return Value Pin
Spacix One1-May-08 9:39
Spacix One1-May-08 9:39 
Questionconvert date formats [modified] Pin
stephan_0071-May-08 0:14
stephan_0071-May-08 0:14 
hy everyone!

is it possible to easyly convert date formats into different formats.

what i want to do is to convert a date format from english format to german format or vice versa.

i do have a function which looks like

public static string ConverFormat (string input, string format, string Cultureinfo)

so when entering this function input contains the date, format contains the formatstring, in which format to display (e.g. {"mm/dd/yyyy"}) and cultureinfo contains the cultureinfo (e.g. en-US) to which the input has to be converted to (english or german format).

so let's say input = 01.05.2008, format = {mm/dd/yyyy} and cultureinfo = en-US then the output should be 05/01/2008.

in here how to convert datetime.now into desired format???[^] i found how to format the type of how to display the date. but i want to switch it from dd.mm.yyyy to e.g. mm/dd/yyyy or mm.dd.yyyy (following the the format declared in parameter format).

do i have to do this by hand, meaning parsing the string and change it to the desired format or is there a chance to do this using default functions?

thanks!

Stephan.

modified on Thursday, May 1, 2008 6:25 AM

AnswerRe: convert date formats Pin
stephan_0071-May-08 0:28
stephan_0071-May-08 0:28 
AnswerRe: convert date formats Pin
PIEBALDconsult1-May-08 9:34
mvePIEBALDconsult1-May-08 9:34 
Questionc# form resize speed Pin
leeoze30-Apr-08 23:44
leeoze30-Apr-08 23:44 
AnswerRe: c# form resize speed Pin
Zoltan Balazs1-May-08 0:43
Zoltan Balazs1-May-08 0:43 
QuestionActive Directory - Null Reference Exception Pin
hobbsieoz30-Apr-08 22:59
hobbsieoz30-Apr-08 22:59 
AnswerRe: Active Directory - Null Reference Exception Pin
Anthony Mushrow1-May-08 0:12
professionalAnthony Mushrow1-May-08 0:12 
GeneralRe: Active Directory - Null Reference Exception Pin
hobbsieoz1-May-08 0:33
hobbsieoz1-May-08 0:33 
AnswerRe: Active Directory - Null Reference Exception Pin
Anthony Mushrow1-May-08 0:45
professionalAnthony Mushrow1-May-08 0:45 
Questionfunction conference Pin
asma_pfe30-Apr-08 22:24
asma_pfe30-Apr-08 22:24 
AnswerRe: function conference Pin
Christian Graus30-Apr-08 23:05
protectorChristian Graus30-Apr-08 23:05 
GeneralRe: function conference Pin
asma_pfe1-May-08 0:09
asma_pfe1-May-08 0:09 
GeneralRe: function conference Pin
Christian Graus1-May-08 2:58
protectorChristian Graus1-May-08 2:58 
GeneralRe: function conference Pin
Bert delaVega1-May-08 4:12
Bert delaVega1-May-08 4:12 
GeneralRe: function conference Pin
asma_pfe2-May-08 3:21
asma_pfe2-May-08 3:21 
QuestionI am not able to see large icon in list view Pin
Naveed72730-Apr-08 21:48
Naveed72730-Apr-08 21:48 
AnswerRe: I am not able to see large icon in list view Pin
Christian Graus30-Apr-08 23:07
protectorChristian Graus30-Apr-08 23:07 
Questiontriggers with a stored procedure Pin
Member 400849230-Apr-08 21:37
Member 400849230-Apr-08 21:37 

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.