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

C#

 
GeneralRe: How to create a trafic program Pin
Halawlaws4-Jul-06 4:15
Halawlaws4-Jul-06 4:15 
GeneralRe: How to create a trafic program Pin
Jun Du4-Jul-06 4:20
Jun Du4-Jul-06 4:20 
GeneralRe: How to create a trafic program Pin
Halawlaws4-Jul-06 4:32
Halawlaws4-Jul-06 4:32 
GeneralRe: How to create a trafic program Pin
Jun Du4-Jul-06 5:55
Jun Du4-Jul-06 5:55 
GeneralRe: How to create a trafic program Pin
stancrm4-Jul-06 19:56
stancrm4-Jul-06 19:56 
QuestionPl help me in this issue Pin
Arun Hegde4-Jul-06 3:21
Arun Hegde4-Jul-06 3:21 
AnswerRe: Pl help me in this issue Pin
ketankumar4-Jul-06 3:32
ketankumar4-Jul-06 3:32 
QuestionConverting a string to a DateTime object (globalization question) [modified] Pin
Vikram A Punathambekar4-Jul-06 3:08
Vikram A Punathambekar4-Jul-06 3:08 
[edit]I'm using .NET 1.1[/edit]

I have a date in the form of a string, in the American format, MM/DD/YYYY. How can I create a DateTime object from this string, irrespective of the current culture?

In other words, even if the current culture is French, the incoming string 11/03/2005 should be interpreted as Nov 03, 2005. I want to do this without changing the current culture.

I tried doing
DateTime suspDt = Convert.ToDateTime(strDate, new CultureInfo("en-US"));
but that didn't work. Sniff | :^)

Thanks in advance! Smile | :)

Cheers,
Vikram.
"I am not Jesus and will never be. The fact is I was a piece of cr*p till I found Him." - Paul Selormey.


-- modified at 9:09 Tuesday 4th July, 2006
AnswerRe: Converting a string to a DateTime object (globalization question) Pin
stancrm4-Jul-06 3:16
stancrm4-Jul-06 3:16 
AnswerRe: Converting a string to a DateTime object (globalization question) Pin
Andrei Ungureanu4-Jul-06 4:37
Andrei Ungureanu4-Jul-06 4:37 
GeneralRe: Converting a string to a DateTime object (globalization question) Pin
Vikram A Punathambekar4-Jul-06 5:06
Vikram A Punathambekar4-Jul-06 5:06 
AnswerRe: Converting a string to a DateTime object (globalization question) Pin
J4amieC4-Jul-06 5:02
J4amieC4-Jul-06 5:02 
GeneralRe: Converting a string to a DateTime object (globalization question) Pin
Vikram A Punathambekar4-Jul-06 23:31
Vikram A Punathambekar4-Jul-06 23:31 
GeneralRe: Converting a string to a DateTime object (globalization question) Pin
lmoelleb4-Jul-06 23:32
lmoelleb4-Jul-06 23:32 
AnswerRe: Converting a string to a DateTime object (globalization question) Pin
Judah Gabriel Himango4-Jul-06 5:56
sponsorJudah Gabriel Himango4-Jul-06 5:56 
QuestionProblem with Open Dialog box Pin
ranandbe4-Jul-06 3:02
ranandbe4-Jul-06 3:02 
AnswerRe: Problem with Open Dialog box [modified] Pin
stancrm4-Jul-06 3:13
stancrm4-Jul-06 3:13 
QuestionC# and Excel pivottable caches Pin
boakley4-Jul-06 2:22
boakley4-Jul-06 2:22 
Questionbarcode Pin
Mohammed Elkholy4-Jul-06 2:15
Mohammed Elkholy4-Jul-06 2:15 
AnswerRe: barcode Pin
Josh Smith4-Jul-06 4:18
Josh Smith4-Jul-06 4:18 
QuestionApp.config Pin
SysJey4-Jul-06 1:23
SysJey4-Jul-06 1:23 
AnswerRe: App.config Pin
mav.northwind4-Jul-06 2:21
mav.northwind4-Jul-06 2:21 
QuestionListView with transparant BackColor Pin
boxed4-Jul-06 1:18
boxed4-Jul-06 1:18 
AnswerRe: ListView with transparant BackColor Pin
mav.northwind4-Jul-06 2:29
mav.northwind4-Jul-06 2:29 
GeneralRe: ListView with transparant BackColor Pin
boxed4-Jul-06 2:56
boxed4-Jul-06 2:56 

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.