Click here to Skip to main content
15,868,141 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: How NOT to calculate the end of month... PinPopular
Rob Grainger15-Jun-20 3:06
Rob Grainger15-Jun-20 3:06 
GeneralRe: How NOT to calculate the end of month... Pin
OriginalGriff15-Jun-20 3:10
mveOriginalGriff15-Jun-20 3:10 
GeneralRe: How NOT to calculate the end of month... Pin
User 1106097915-Jun-20 3:19
User 1106097915-Jun-20 3:19 
GeneralRe: How NOT to calculate the end of month... Pin
kalberts15-Jun-20 3:37
kalberts15-Jun-20 3:37 
GeneralRe: How NOT to calculate the end of month... Pin
User 1106097915-Jun-20 4:00
User 1106097915-Jun-20 4:00 
GeneralRe: How NOT to calculate the end of month... Pin
Marc Clifton15-Jun-20 4:59
mvaMarc Clifton15-Jun-20 4:59 
GeneralRe: How NOT to calculate the end of month... Pin
obermd17-Jun-20 4:29
obermd17-Jun-20 4:29 
GeneralRe: How NOT to calculate the end of month... Pin
Myron Dombrowski17-Jun-20 14:21
Myron Dombrowski17-Jun-20 14:21 
This gets you the last *date* of the month, but if you’re actually looking for the “end” of the month and don’t want fencepost errors, you’d want the first of the next month (with no time component) and then use a strict less-than in your comparisons.
GeneralRe: How NOT to calculate the end of month... Pin
EbenRoux16-Jun-20 23:16
EbenRoux16-Jun-20 23:16 
GeneralRe: How NOT to calculate the end of month... Pin
Rob Grainger16-Jun-20 23:32
Rob Grainger16-Jun-20 23:32 
GeneralRe: How NOT to calculate the end of month... PinPopular
BDieser17-Jun-20 1:41
BDieser17-Jun-20 1:41 
GeneralRe: How NOT to calculate the end of month... Pin
Rob Grainger17-Jun-20 12:38
Rob Grainger17-Jun-20 12:38 
GeneralClient sided login Pin
Brisingr Aerowing25-May-20 12:42
professionalBrisingr Aerowing25-May-20 12:42 
GeneralRe: Client sided login Pin
dan!sh 25-May-20 18:34
professional dan!sh 25-May-20 18:34 
GeneralRe: Client sided login Pin
Sander Rossel25-May-20 19:59
professionalSander Rossel25-May-20 19:59 
GeneralRe: Client sided login Pin
dan!sh 26-May-20 21:29
professional dan!sh 26-May-20 21:29 
GeneralRe: Client sided login Pin
Sander Rossel26-May-20 21:51
professionalSander Rossel26-May-20 21:51 
GeneralRe: Client sided login Pin
Andreas Mertens17-Jun-20 6:22
professionalAndreas Mertens17-Jun-20 6:22 
GeneralRe: Client sided login Pin
DerekT-P28-May-20 6:33
professionalDerekT-P28-May-20 6:33 
GeneralRe: Client sided login Pin
dan!sh 30-May-20 0:36
professional dan!sh 30-May-20 0:36 
GeneralRe: Client sided login Pin
DerekT-P30-May-20 2:18
professionalDerekT-P30-May-20 2:18 
GeneralRe: Client sided login Pin
Kornfeld Eliyahu Peter25-May-20 20:24
professionalKornfeld Eliyahu Peter25-May-20 20:24 
GeneralRe: Client sided login Pin
F-ES Sitecore25-May-20 23:49
professionalF-ES Sitecore25-May-20 23:49 
GeneralRe: Client sided login Pin
phil.o28-May-20 8:22
professionalphil.o28-May-20 8:22 
GeneralRe: Client sided login Pin
dan!sh 2-Jun-20 21:37
professional dan!sh 2-Jun-20 21:37 

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.