Click here to Skip to main content
15,894,405 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Been there done that... Pin
Sander Rossel5-Oct-20 1:36
professionalSander Rossel5-Oct-20 1:36 
GeneralRe: Been there done that... Pin
Mircea Neacsu5-Oct-20 2:37
Mircea Neacsu5-Oct-20 2:37 
GeneralRe: Been there done that... Pin
trønderen5-Oct-20 2:51
trønderen5-Oct-20 2:51 
GeneralRe: Been there done that... Pin
Mircea Neacsu5-Oct-20 3:05
Mircea Neacsu5-Oct-20 3:05 
GeneralRe: Been there done that... Pin
trønderen5-Oct-20 3:13
trønderen5-Oct-20 3:13 
GeneralRe: Been there done that... Pin
Jörgen Andersson5-Oct-20 2:02
professionalJörgen Andersson5-Oct-20 2:02 
GeneralRe: Been there done that... Pin
Mircea Neacsu5-Oct-20 1:04
Mircea Neacsu5-Oct-20 1:04 
GeneralRe: Been there done that... Pin
Sander Rossel5-Oct-20 1:33
professionalSander Rossel5-Oct-20 1:33 
It's simply not a date, and every time you'll have to use it you either need to cast it to a date (performance bottleneck) or you need to know exactly how it's formatted, etc.
It'll also be a matter of time before you get 20201005.00000000003 because it's still floating point arithmetic.
Or perhaps someone will enter 1 or 2020931, who'll say as there are no validations.
I'm now assuming the format of yyyyMMdd, but maybe it'll be days since [some date], like JavaScript and Linux do.
Perhaps people will use a local date, such as 05102020 or 10052020, good luck working with that.
Now let's say the float contains ISO dates in the form of yyyyMMdd and the date is 20201029, now add 7 days, good luck!

All in all, it's a lot of trouble, ambiguity and simply disaster waiting to happen.
If you really need dates that do not fit into any SQL date type, use separate integers for year, month and day, I guess.

GeneralRe: Been there done that... Pin
Mircea Neacsu5-Oct-20 2:01
Mircea Neacsu5-Oct-20 2:01 
GeneralRe: Been there done that... Pin
Jörgen Andersson5-Oct-20 2:06
professionalJörgen Andersson5-Oct-20 2:06 
GeneralRe: Been there done that... Pin
Mircea Neacsu5-Oct-20 2:33
Mircea Neacsu5-Oct-20 2:33 
GeneralRe: Been there done that... Pin
trønderen5-Oct-20 3:12
trønderen5-Oct-20 3:12 
GeneralRe: Been there done that... Pin
Mircea Neacsu5-Oct-20 3:41
Mircea Neacsu5-Oct-20 3:41 
GeneralRe: Been there done that... Pin
Jörgen Andersson5-Oct-20 3:45
professionalJörgen Andersson5-Oct-20 3:45 
GeneralRe: Been there done that... Pin
Jörgen Andersson5-Oct-20 3:43
professionalJörgen Andersson5-Oct-20 3:43 
GeneralRe: Been there done that... Pin
obermd5-Oct-20 3:38
obermd5-Oct-20 3:38 
GeneralRe: Been there done that... Pin
Sander Rossel5-Oct-20 4:05
professionalSander Rossel5-Oct-20 4:05 
GeneralWeekend Thought of the day Pin
Sandeep Mewara3-Oct-20 21:48
mveSandeep Mewara3-Oct-20 21:48 
GeneralRe: Weekend Thought of the day Pin
Richard Andrew x644-Oct-20 2:21
professionalRichard Andrew x644-Oct-20 2:21 
GeneralRe: Weekend Thought of the day Pin
kmoorevs4-Oct-20 7:18
kmoorevs4-Oct-20 7:18 
GeneralRe: Weekend Thought of the day Pin
Richard Andrew x644-Oct-20 9:12
professionalRichard Andrew x644-Oct-20 9:12 
GeneralRe: Weekend Thought of the day Pin
DRHuff4-Oct-20 4:31
DRHuff4-Oct-20 4:31 
GeneralRe: Weekend Thought of the day Pin
Amarnath S4-Oct-20 21:34
professionalAmarnath S4-Oct-20 21:34 
GeneralChanging EULAs - who bothers? Pin
dandy723-Oct-20 3:08
dandy723-Oct-20 3:08 
GeneralRe: Changing EULAs - who bothers? Pin
Gerry Schmitz3-Oct-20 3:38
mveGerry Schmitz3-Oct-20 3:38 

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.