Click here to Skip to main content
   

C#

 
QuestionMessageBox with textbox WPF Pinmemberjuliogyn10-Sep-13 4:57 
AnswerRe: MessageBox with textbox WPF PinmvpRichard MacCutchan10-Sep-13 6:17 
QuestionTake the first day of the month and the last day of the month ? [modified] PinmemberMember 24584679-Sep-13 23:59 
AnswerRe: Take the first day of the month and the last day of the month ? PinmvpRichard MacCutchan10-Sep-13 0:43 
GeneralRe: Take the first day of the month and the last day of the month ? PinprotectorPete O'Hanlon10-Sep-13 1:44 
AnswerRe: Take the first day of the month and the last day of the month ? PinprotectorPete O'Hanlon10-Sep-13 1:38 
AnswerRe: Take the first day of the month and the last day of the month ? PinprotectorPete O'Hanlon10-Sep-13 3:22 
AnswerRe: Take the first day of the month and the last day of the month ? PingroupExcellentOrg10-Sep-13 6:27 
Nothing is wrong with this code, fellas. This approach is format, Culture independent.

I've used this kind of logic many many times and its very compact.

As is obvious to all, 1st of a month is never a problem because all months have 1st.

Instead of writing yet another variant in C++/C# for "30 days hath sep...", simply add 1 to month to the variable you had for 1st of month, and then subtract 1 day from the Resulting date.

It is meant to done in date arithmetic with valid values in Date's class.
GeneralRe: Take the first day of the month and the last day of the month ? Pinmemberjschell10-Sep-13 9:52 
QuestionUnable to change default color of Progress Bar control in winforms Pinmembersuperselector8-Sep-13 22:02 
AnswerRe: Unable to change default color of Progress Bar control in winforms PinmvpAbhinav S8-Sep-13 23:28 
AnswerRe: Unable to change default color of Progress Bar control in winforms PinmvpEddy Vluggen8-Sep-13 23:33 
QuestionC# code making prolem when calling secure conection. PinmemberShinu K8-Sep-13 21:15 
AnswerRe: C# code making prolem when calling secure conection. PinmvpAbhinav S8-Sep-13 23:25 
QuestionC# vs Delphi. any ideas? PinmemberSwinkaran8-Sep-13 21:13 
AnswerRe: C# vs Delphi. any ideas? PinmvpAbhinav S8-Sep-13 23:22 
AnswerRe: C# vs Delphi. any ideas? PinmvpEddy Vluggen8-Sep-13 23:33 
QuestionCurrent Row Select in DataGridView ... Pinmembersmh13928-Sep-13 7:46 
AnswerRe: Current Row Select in DataGridView ... PinprofessionalRichard Andrew x648-Sep-13 15:20 
AnswerRe: Current Row Select in DataGridView ... PinmvpEddy Vluggen9-Sep-13 9:06 
Questionwordlist generator Pinmembermory_2607-Sep-13 22:50 
SuggestionRe: wordlist generator PinmvpRichard MacCutchan8-Sep-13 1:39 
AnswerRe: wordlist generator PinmvpEddy Vluggen9-Sep-13 9:13 
QuestionAvoid space at the Start of the textbox Pinmembersmh13927-Sep-13 11:21 
AnswerRe: Avoid space at the Start of the textbox PinmvpDave Kreskowiak7-Sep-13 13:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150331.1 | Last Updated 1 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid