not the expected result... (xojo2016r11)

[code] dim d as new Date

d.day=0
d.Month=0
d.Year=0

d.SQLDate = “2016-06-14”

MsgBox d.LongDate
[/code]

what do you get ?
(may be it’s a localisation bug I’m on a french system)

Sunday , 14 June 2015

Xojo Mac 2015 R3

I get:

Sunday, June 14, 2015

dont think so
I’m not on a french system & I get odd results depending on the order of setting the year, month, day to 0

d.day=0
d.Month=0
d.Year=0

Sunday June 14, 2015 (its off by 1 year)

d.Year=0
d.day=0
d.Month=0

Friday June 14, 2013 (off by 3 years)

And I only get one of those two dates depending on what order I set D M Y

I get the right date if I dont set the year etc to 0…

it gives a good result if you set the 3 values to 1, anyway something other than zero
don’t know why
feedback a bug ?

apparently a long standing bug as it does this in 2012r2.1 as well

2011r1, 2010r3

all tested on 10.11.5

Isn’t the bug the fact that assigning SQLDATE property should NOT even “care” what you may or may not have done to the Month,Day, Year properties previously, since IT is going to assign potentially new ones anyways

<https://xojo.com/issue/44244>

seems the bug affects only macos x

Tuesday, June 14, 2016

on Windows 10,
Xojo 2016r1.1