Adrock DateTime Components

{********************}
{**    reloaded    **}
{********************}

Last compiled for Delphi V5 in 1997 over 25 years ago you’re still contacting us about our Delphi pascal based components – in particular, the DateTime Suite and Date Functions class with around 200 handy date and time functions that you can use and easily adapt to any language such as Microsoft Excel’s VBA.

So, Feb 2023,  I’ve put this page up for you.  Please get in touch if you find any errors or omissions.

It includes:

  • General info and dets
  • Download links with full source code
  • Fixed 301 redirects from old website

So just when IS Easter?!?!

Wikipedia says… Easter and its related holidays are moveable feasts, not falling on a fixed date; its date is computed based on a lunisolar calendar (solar year plus Moon phase) similar to the Hebrew calendar. The First Council of Nicaea established only two rules, namely independence from the Hebrew calendar and worldwide uniformity. No details for the computation were specified; these were worked out in practice, a process that took centuries and generated a number of controversies. It has come to be the first Sunday after the ecclesiastical full moon that occurs on or soonest after 21 March.  Even if calculated on the basis of the more accurate Gregorian calendar, the date of that full moon sometimes differs from that of the astronomical first full moon after the March equinox.
 
But it’s just a little more complicated than that…
 
And even then not without controversy…
 
But don’t sweat it – our ReturnEasterSunday function in our Date class (AdDate.pas) has got you covered – see sample pic.

Adrock Software
Borland Delphi
DateTime components

  • Our AdDate.pas class has nearly 200 functions you can use in Delphi or easily adapt to VBA (think Excel) or Visual Studio C#, F# C, C++ etc.
  • A nice guy “RichP” put up our Delphi code (now under MIT licence / freeware) on Github.  I’ve also mirrored that and one day I’ll remove all the license text and reduce it down to a few lines that is the simplicity and FOSS that is the MIT license.
  • Other Delphi component source code is available on request. I’ll endeavor to get that up here on our site for free download (or maybe Github).
  • Get in touch with me if you need help or more info.
Adrock Software, Borland Delphi, DateTime Components - GitHub repository

Download @
Github

Download our components w’ source code from RichP’s Github repository or our mirror here: Adrock Github

Microsoft Excel | VBA example

It’s trivially easy to convert any of the nearly 200 pascal based Delphi DateClass functions to other languages…

Microsoft Excel example - ReturnEasterSunday