Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Leap year coding issue (perhaps)
#4
Delphi has a built-in function

if IsLeapYear(2000)
  then

also you can use


try

  DateToStr; StrToDate

except

  correct the date according to your needs by adding or substracting one day

end
Reply


Messages In This Thread
Leap year coding issue (perhaps) - by msgopala - 01-16-2020, 03:42 PM
RE: Leap year coding issue (perhaps) - by kudzu - 01-17-2020, 02:41 PM
RE: Leap year coding issue (perhaps) - by MrSpock - 01-20-2020, 10:58 AM
RE: Leap year coding issue (perhaps) - by kudzu - 01-20-2020, 04:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)