Click here to Skip to main content
15,922,325 members
Home / Discussions / C#
   

C#

 
GeneralRe: Complex Regular Expression Pin
MidwestLimey5-Oct-07 6:08
professionalMidwestLimey5-Oct-07 6:08 
QuestionDownload File From Website With Login Pin
redfish344-Oct-07 11:39
redfish344-Oct-07 11:39 
AnswerRe: Download File From Website With Login Pin
Scott Dorman4-Oct-07 11:54
professionalScott Dorman4-Oct-07 11:54 
GeneralRe: Download File From Website With Login Pin
redfish344-Oct-07 12:24
redfish344-Oct-07 12:24 
GeneralRe: Download File From Website With Login Pin
Meysam Mahfouzi21-Sep-08 20:21
Meysam Mahfouzi21-Sep-08 20:21 
Questionparsing a string with DateTime.ParseExact Pin
dfn4-Oct-07 11:11
dfn4-Oct-07 11:11 
AnswerRe: parsing a string with DateTime.ParseExact Pin
Christian Graus4-Oct-07 11:34
protectorChristian Graus4-Oct-07 11:34 
AnswerRe: parsing a string with DateTime.ParseExact Pin
Luc Pattyn4-Oct-07 11:44
sitebuilderLuc Pattyn4-Oct-07 11:44 
Hi,

if you want your ParseExact to succeed, today must consist of exactly four digits.
So it all depends on your regional settings, which control the outcome of ToShortDateString().

You could try String today = DateTime.Today.Date.ToString("MMdd");

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


AnswerRe: parsing a string with DateTime.ParseExact Pin
Scott Dorman4-Oct-07 11:51
professionalScott Dorman4-Oct-07 11:51 
AnswerRe: parsing a string with DateTime.ParseExact Pin
dfn4-Oct-07 11:59
dfn4-Oct-07 11:59 
JokeRe: parsing a string with DateTime.ParseExact Pin
Anthony Mushrow4-Oct-07 12:30
professionalAnthony Mushrow4-Oct-07 12:30 
QuestionHow to create Expander in WinForm? Pin
tantja4-Oct-07 11:04
tantja4-Oct-07 11:04 
AnswerRe: How to create Expander in WinForm? Pin
Christian Graus4-Oct-07 11:35
protectorChristian Graus4-Oct-07 11:35 
GeneralRe: How to create Expander in WinForm? Pin
tantja4-Oct-07 11:47
tantja4-Oct-07 11:47 
QuestionRe: How to create Expander in WinForm? Pin
TJoe4-Oct-07 12:14
TJoe4-Oct-07 12:14 
AnswerRe: How to create Expander in WinForm? Pin
tantja4-Oct-07 12:16
tantja4-Oct-07 12:16 
QuestionActivation or License Pin
andyr20054-Oct-07 10:25
andyr20054-Oct-07 10:25 
AnswerRe: Activation or License Pin
Ilya Verbitskiy4-Oct-07 10:48
Ilya Verbitskiy4-Oct-07 10:48 
AnswerRe: Activation or License Pin
TJoe4-Oct-07 12:11
TJoe4-Oct-07 12:11 
QuestionDataGridView button problem Pin
udikantz4-Oct-07 9:20
udikantz4-Oct-07 9:20 
QuestionIssues with Mutlithreading and STA [modified] Pin
Aaron VanWieren4-Oct-07 8:53
Aaron VanWieren4-Oct-07 8:53 
AnswerRe: Issues with Mutlithreading and STA Pin
led mike4-Oct-07 9:52
led mike4-Oct-07 9:52 
GeneralRe: Issues with Mutlithreading and STA Pin
Aaron VanWieren4-Oct-07 10:34
Aaron VanWieren4-Oct-07 10:34 
AnswerRe: Issues with Mutlithreading and STA Pin
Luc Pattyn4-Oct-07 11:57
sitebuilderLuc Pattyn4-Oct-07 11:57 
GeneralRe: Issues with Mutlithreading and STA Pin
Aaron VanWieren4-Oct-07 12:12
Aaron VanWieren4-Oct-07 12:12 

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.