Click here to Skip to main content
15,911,306 members
Home / Discussions / C#
   

C#

 
QuestionNo Windows Login Prompt Required. Pin
HillyBilly0691-Jun-06 9:32
HillyBilly0691-Jun-06 9:32 
AnswerRe: No Windows Login Prompt Required. Pin
Alex B. Clarke1-Jun-06 11:53
Alex B. Clarke1-Jun-06 11:53 
GeneralRe: No Windows Login Prompt Required. Pin
HillyBilly0695-Jun-06 3:43
HillyBilly0695-Jun-06 3:43 
GeneralRe: No Windows Login Prompt Required. [modified] Pin
Alex B. Clarke6-Jun-06 8:03
Alex B. Clarke6-Jun-06 8:03 
QuestionIs there a simple way to convert date formats using dateinfoproviders??? Pin
LongRange.Shooter1-Jun-06 9:15
LongRange.Shooter1-Jun-06 9:15 
AnswerRe: Is there a simple way to convert date formats using dateinfoproviders??? Pin
Stephan Samuel1-Jun-06 9:28
Stephan Samuel1-Jun-06 9:28 
GeneralRe: Is there a simple way to convert date formats using dateinfoproviders??? Pin
User 66581-Jun-06 9:39
User 66581-Jun-06 9:39 
AnswerRe: Is there a simple way to convert date formats using dateinfoproviders??? Pin
User 66581-Jun-06 9:37
User 66581-Jun-06 9:37 
I'm not sure this is the best solution, but it works for me:

string strdate = "06120";
DateTime date = new DateTime(Int32.Parse("20" + strdate.Substring(0, 2)), 1, 1);
date = date.AddDays(double.Parse(strdate.Substring(2, 3))-1.0f);

Console.WriteLine(date.ToString());


Don't forget to add some exception-handling. Also I added the "20", since your format only has the last two digits of a year given.

regards

modified 12-Sep-18 21:01pm.

Questionasymetric property accessibility? Pin
eye_for_an_eye1-Jun-06 8:45
eye_for_an_eye1-Jun-06 8:45 
AnswerRe: asymetric property accessibility? Pin
Stephan Samuel1-Jun-06 9:01
Stephan Samuel1-Jun-06 9:01 
QuestionUsing the results found by google desktop Pin
Rizwan Rathore1-Jun-06 7:27
Rizwan Rathore1-Jun-06 7:27 
AnswerRe: Using the results found by google desktop Pin
zhangyang20081-Jun-06 19:01
zhangyang20081-Jun-06 19:01 
GeneralRe: Using the results found by google desktop Pin
Rizwan Rathore2-Jun-06 2:54
Rizwan Rathore2-Jun-06 2:54 
QuestionConsuming Java Web Service from C# client Pin
acvishy1-Jun-06 7:24
acvishy1-Jun-06 7:24 
QuestionRecord change detection. Pin
tcss1-Jun-06 7:21
tcss1-Jun-06 7:21 
QuestionWindows Vista and Audio/Video functions Pin
[DK]KiloDunse1-Jun-06 6:53
[DK]KiloDunse1-Jun-06 6:53 
AnswerRe: Windows Vista and Audio/Video functions Pin
Judah Gabriel Himango1-Jun-06 9:15
sponsorJudah Gabriel Himango1-Jun-06 9:15 
GeneralRe: Windows Vista and Audio/Video functions Pin
LongRange.Shooter1-Jun-06 9:21
LongRange.Shooter1-Jun-06 9:21 
GeneralRe: Windows Vista and Audio/Video functions Pin
Judah Gabriel Himango1-Jun-06 9:53
sponsorJudah Gabriel Himango1-Jun-06 9:53 
AnswerRe: Windows Vista and Audio/Video functions [modified] Pin
LongRange.Shooter1-Jun-06 9:17
LongRange.Shooter1-Jun-06 9:17 
QuestionEquivalent of a break Pin
donkaiser1-Jun-06 4:42
donkaiser1-Jun-06 4:42 
AnswerRe: Equivalent of a break Pin
stancrm1-Jun-06 4:49
stancrm1-Jun-06 4:49 
AnswerRe: Equivalent of a break Pin
Stephan Samuel1-Jun-06 6:26
Stephan Samuel1-Jun-06 6:26 
AnswerRe: Equivalent of a break Pin
leppie1-Jun-06 12:37
leppie1-Jun-06 12:37 
QuestionCombobox autocompletion Pin
PaulaM1-Jun-06 4:38
PaulaM1-Jun-06 4: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.