Click here to Skip to main content
16,005,038 members
Home / Discussions / C#
   

C#

 
GeneralRe: Error in .Net after adding PayPal webservice - please help!! Pin
nzmike3-Aug-05 20:43
nzmike3-Aug-05 20:43 
GeneralASP.NET/C#/CDO COMException.. PLEASE HELP! Pin
Jonathan W. Zaleski3-Aug-05 11:21
Jonathan W. Zaleski3-Aug-05 11:21 
GeneralDate Format Pin
Ming Luo3-Aug-05 10:52
Ming Luo3-Aug-05 10:52 
GeneralRe: Date Format Pin
Rob Graham3-Aug-05 11:24
Rob Graham3-Aug-05 11:24 
GeneralRe: Date Format Pin
Ming Luo4-Aug-05 6:30
Ming Luo4-Aug-05 6:30 
GeneralRe: Date Format Pin
Guffa3-Aug-05 13:16
Guffa3-Aug-05 13:16 
GeneralRe: Date Format Pin
Ming Luo4-Aug-05 6:27
Ming Luo4-Aug-05 6:27 
GeneralRe: Date Format Pin
Guffa5-Aug-05 4:08
Guffa5-Aug-05 4:08 
Each of the methods you tried involved converting a string to a date. That means that you rely on the culture specified by default to correctly interpret the date. Obviously the default culture is not the one you wish to use, so it doesn't.

Provide a DateTimeFormat for the culture you wish to use. I would use a swedish CultureInfo (LCID 1053) to parse a date in swedish format:

string dateString = "2005-08-05";<br />
table["date"] = System.DateTime.Parse(dateString, new CultureInfo(1053).DateTimeFormat);


---
b { font-weight: normal; }

GeneralWindows account information Pin
lrech3-Aug-05 10:17
lrech3-Aug-05 10:17 
GeneralRe: Windows account information Pin
Peter Vertes3-Aug-05 11:28
Peter Vertes3-Aug-05 11:28 
GeneralRe: Windows account information Pin
Mohamad Al Husseiny3-Aug-05 13:10
Mohamad Al Husseiny3-Aug-05 13:10 
GeneralRe: Windows account information Pin
Mohamad Al Husseiny3-Aug-05 13:13
Mohamad Al Husseiny3-Aug-05 13:13 
GeneralSoftware Protection Pin
damir_tk3-Aug-05 9:53
damir_tk3-Aug-05 9:53 
GeneralRe: Software Protection Pin
Lars Niedziolka3-Aug-05 13:45
Lars Niedziolka3-Aug-05 13:45 
GeneralRe: Software Protection Pin
Carl Mercier3-Aug-05 15:10
Carl Mercier3-Aug-05 15:10 
GeneralRemoving Icon from a Form Pin
Luis Alonso Ramos3-Aug-05 9:41
Luis Alonso Ramos3-Aug-05 9:41 
GeneralRe: Removing Icon from a Form Pin
Dave Kreskowiak3-Aug-05 11:52
mveDave Kreskowiak3-Aug-05 11:52 
GeneralRe: Removing Icon from a Form Pin
Lars Niedziolka3-Aug-05 13:02
Lars Niedziolka3-Aug-05 13:02 
GeneralRe: Removing Icon from a Form Pin
Luis Alonso Ramos3-Aug-05 13:06
Luis Alonso Ramos3-Aug-05 13:06 
GeneralRe: Removing Icon from a Form Pin
Luis Alonso Ramos3-Aug-05 13:05
Luis Alonso Ramos3-Aug-05 13:05 
GeneralRe: Removing Icon from a Form Pin
Lars Niedziolka3-Aug-05 13:50
Lars Niedziolka3-Aug-05 13:50 
GeneralRe: Removing Icon from a Form Pin
Luis Alonso Ramos3-Aug-05 13:54
Luis Alonso Ramos3-Aug-05 13:54 
GeneralConverting Server to Local Time Pin
Anonymous3-Aug-05 8:32
Anonymous3-Aug-05 8:32 
GeneralJavascript from c# Pin
Renjith Ramachandran3-Aug-05 7:59
Renjith Ramachandran3-Aug-05 7:59 
GeneralRe: Javascript from c# Pin
Judah Gabriel Himango3-Aug-05 8:06
sponsorJudah Gabriel Himango3-Aug-05 8:06 

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.