Better still, Thanks Jon!
/************CODE***********/
using System;
using System.Globalization;
public class Test
{
static void Main()
{
string original = "16/2/2006"; //could be in any format
CultureInfo us = new CultureInfo ("en-US");
DateTime parsed = DateTime.Parse(original,
CultureInfo.CurrentCulture);
string formatted = parsed.ToString("d", us);
Console.WriteLine (formatted);
}
}
/*************************************/
rs****@gmail.com
Jan 4, 10:17 am show options
Newsgroups: microsoft.public.dotnet.languages.csharp
From: "rsa...@gmail.com" <rsa...@gmail.com> - Find messages by this
author
Date: 4 Jan 2006 07:17:41 -0800
Local: Wed, Jan 4 2006 10:17 am
Subject: Re: Convert en-GB to en-US
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Remove | Report Abuse
Mark and Jon,
Thanks for putting me in the right direction - It works fine!
I went ahead and modified Jon's code to generalize the original date to
any Culture (as my clients may be in any country).
Here is the snippet for any one who might need