FoxInCloud
year bisextile
Gravatar is a globally recognized avatar based on your email address. year bisextile
  Vincent H.
  All
  Jan 28, 2019 @ 08:38am

Hi Thierry,

In bootstrap mode, the selection on 29/02/2016 displays the day before. Is there a way out ?

Thanks in advance

Gravatar is a globally recognized avatar based on your email address. re: year bisextile
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jan 28, 2019 @ 12:40pm
modify command abDev.prg

&& replace
m.liMonth = 2, 28

&& by
m.liMonth = 2,; && https://support.west-wind.com/Thread5EH0IIR79.wwt#5EH0IIR7A
  Iif(Empty(Left(Dtoc(Ctod(ICase(; && leap year: https://www.tek-tips.com/viewthread.cfm?qid=733848
    Left(Set("DATE"),3) $ "AME/USA/MDY",;
      "02/29/" + Cast(m.liYear as M),;
    Left(Set("DATE"),3) $ "JAP/TAI/YMD",;
      Cast(m.liYear as M) + "/02/29",;
      "29/02/" + Cast(m.liYear as M);
    ))), 2));
    , 28, 29)
Gravatar is a globally recognized avatar based on your email address. re: year bisextile
  Vincent H.
  FoxInCloud Support - Thierry N.
  Jan 28, 2019 @ 11:56pm

It works perfectly !
Thank you for this great responsiveness

Gravatar is a globally recognized avatar based on your email address. re: year bisextile
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jan 29, 2019 @ 12:04am

works perfectly but too complex… more simple:

m.liMonth = 2,; && https://support.west-wind.com/Thread5EH0IIR79.wwt#5EH0IIR7A
  Iif(Day(Date(m.liYear, 02, 28) + 1) = 29, 29, 28) && leap year?
Gravatar is a globally recognized avatar based on your email address. re: year bisextile
  Vincent H.
  FoxInCloud Support - Thierry N.
  Jan 29, 2019 @ 12:51am

Yes, the freshness of the morning ...

Thanks !

© 1996-2024