Happy New Year 2016! And yes, 2016 is a leap year, so we all have an additional day for programming this year. Here are two VCL applications, one written using Delphi and one written using C++Builder. The projects have a simple VCL form (you can do the same using FireMonkey) with a TButton, a TDateTimePicker and a TShape. I want to color the shape red if the selected date in the calendar is not in a leap year and color the shape green if it the date is in a leap year. Most every developer ...
Today is February 29, 2012. Leap Day! I have arrived in Johannesburg for tomorrow's "RAD Studio XE2 in Action - Live" workshop. I had a few minutes between arrival and our check of the venue, our slides and the demos. We had lunch in Nelson Mandela Square in the Standton area of Johannesburg. I had my picture taken in front of the benevolently smiling Nelson Mandela statue (click on the thumbnail to see the whole picture).
[caption id="attachment_41515" align="aligncenter" width="150" ca...
Happy New Year to all the programmers out there, the start of a new year and new projects. Thank you to everyone who took part in our tours, webinars and events in 2011. We will do even more in 2012 to help you be successful in your development projects. And, in 2012, we all have an extra day to write our code - it's a leap year!
Leap Year Algorithm for the Gregorian Calendar
Result := (Year mod 4 = 0) and ((Year mod 100 <> 0) or (Year mod 400 = 0));
Looking forward to see you...