B4A Library DateConvert library

derez

Expert
Licensed User
Here is a library to translate Gregorian dates to Hebrew dates and vice versa, from year 2 and on!
Result can be numerical or Hebrew.

Edit: Version 1.1 includes another method isLeapH which returns if the Hebrew year is a Leap year.
Also correction of a bug which appears in devices but not in emulator !

Edit: ver. 1.2 includes two more methods: IsLeapG to find if a Gregorian year is a leap year, and HebMonthLength which returns the length of a Hebrew month per specified Hmonth and Hyear.
Edit: ver 1.2.2 - found and corrected one day shift in GregToHeb methods.
 

Attachments

Last edited:

derez

Expert
Licensed User
Version 1.1 includes another method isLeapH which returns if the Hebrew year is a Leap year.
Also correction of a bug which appears in devices but not in emulator !
 

derez

Expert
Licensed User
Ver. 1.2 includes two more methods: IsLeapG to find if a Gregorian year is a leap year, and HebMonthLength which returns the length of a Hebrew month per specified Hmonth and Hyear.
 

derez

Expert
Licensed User
ver 1.2.1 - found and corrected one day shift in GregToHeb.
1.2.2 for the other GregToHeb method.
Took a while to see the problem as it appears differently on different devices/emulators.
 
Last edited:

ilan

Expert
Licensed User
Top