Click here to Skip to main content
15,887,366 members
Home / Discussions / C#
   

C#

 
AnswerRe: Windows or WPF? Pin
dan!sh 31-Mar-14 19:33
professional dan!sh 31-Mar-14 19:33 
GeneralRe: Windows or WPF? Pin
Shady George31-Mar-14 19:39
Shady George31-Mar-14 19:39 
GeneralRe: Windows or WPF? Pin
dan!sh 31-Mar-14 19:50
professional dan!sh 31-Mar-14 19:50 
GeneralRe: Windows or WPF? Pin
Shady George1-Apr-14 7:35
Shady George1-Apr-14 7:35 
AnswerRe: Windows or WPF? Pin
V.31-Mar-14 21:41
professionalV.31-Mar-14 21:41 
GeneralRe: Windows or WPF? Pin
Shady George1-Apr-14 7:39
Shady George1-Apr-14 7:39 
QuestionDate conversion from YYMMDD to CCYYMMDD Pin
Member 1071407431-Mar-14 15:41
Member 1071407431-Mar-14 15:41 
AnswerRe: Date conversion from YYMMDD to CCYYMMDD Pin
Peter Leow31-Mar-14 16:21
professionalPeter Leow31-Mar-14 16:21 
First , the program must validate that it is a valid date as per your original format, then can do the necessary conversion, see example:
C#
using System;
using System.Globalization;

public class Program
{
    public static void Main()
    {
        string dateString = "140331";   // in yyMMdd format
        DateTime result;
        if (DateTime.TryParseExact(dateString, "yyMMdd", CultureInfo.InvariantCulture, DateTimeStyles.None, out result)){

            Console.WriteLine(result.ToString("yyyyMMdd"));   // output 20140331
        } else {
            Console.WriteLine("Data invalid");  
        }
    }
}

GeneralRe: Date conversion from YYMMDD to CCYYMMDD Pin
Member 107140741-Apr-14 6:56
Member 107140741-Apr-14 6:56 
QuestionASP .Net issue with Oracle client Pin
Rock Star.31-Mar-14 4:05
Rock Star.31-Mar-14 4:05 
AnswerRe: ASP .Net issue with Oracle client Pin
Pete O'Hanlon31-Mar-14 4:14
mvePete O'Hanlon31-Mar-14 4:14 
QuestionL'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 2:35
remiki31-Mar-14 2:35 
AnswerRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 3:12
mvePete O'Hanlon31-Mar-14 3:12 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 3:22
remiki31-Mar-14 3:22 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 4:04
mvePete O'Hanlon31-Mar-14 4:04 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 4:13
remiki31-Mar-14 4:13 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 4:15
mvePete O'Hanlon31-Mar-14 4:15 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Dave Kreskowiak31-Mar-14 4:19
mveDave Kreskowiak31-Mar-14 4:19 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 4:21
remiki31-Mar-14 4:21 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 4:38
mvePete O'Hanlon31-Mar-14 4:38 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 4:57
remiki31-Mar-14 4:57 
GeneralRe: L'Exception ArgumentException was not Operated PinPopular
Dave Kreskowiak31-Mar-14 4:48
mveDave Kreskowiak31-Mar-14 4:48 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 5:11
remiki31-Mar-14 5:11 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 5:15
remiki31-Mar-14 5:15 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 5:25
mvePete O'Hanlon31-Mar-14 5:25 

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.