Gregorian vs. Hebrew calendars 
Author Message
 Gregorian vs. Hebrew calendars

Hello,

Does anyone know how to translate back and forth between calendars, for example Gregorian vs. Hebrew?

Thanks,
Avi



Sat, 23 Oct 2004 10:14:52 GMT  
 Gregorian vs. Hebrew calendars
I have a conversion class that takes in specific dates and will convert it
for you.

If you are interested, please email me.

--
Joe Feser
Fesersoft
http://www.fesersoft.com/
.Net, XML, XSLT, SQL
Free Code, Articles and Information.


Hello,

Does anyone know how to translate back and forth between calendars, for
example Gregorian vs. Hebrew?

Thanks,
Avi



Sat, 23 Oct 2004 11:22:12 GMT  
 Gregorian vs. Hebrew calendars

Here's how the Calendar classes work.  They need the presence of a DateTime structure...

DateTime dt = DateTime.Now;
GregorianCalendar gc = new GregorianCalendar();
int gcYear = gc.GetYear( dt );

HebrewCalendar hc = new HebrewCalendar();
int hcYear = hc.GetYear( dt );

To create a DateTime object based on the Calendar, you need to use ToDateTime(...) to construct it.  As you'll see, the Calendars do NOT store the date themselves.

Hope this helps.
Chris R.


  Hello,

  Does anyone know how to translate back and forth between calendars, for example Gregorian vs. Hebrew?

  Thanks,
  Avi



Sat, 23 Oct 2004 11:29:23 GMT  
 Gregorian vs. Hebrew calendars

Chris,

Many thanks.
Avi

  Here's how the Calendar classes work.  They need the presence of a DateTime structure...

  DateTime dt = DateTime.Now;
  GregorianCalendar gc = new GregorianCalendar();
  int gcYear = gc.GetYear( dt );

  HebrewCalendar hc = new HebrewCalendar();
  int hcYear = hc.GetYear( dt );

  To create a DateTime object based on the Calendar, you need to use ToDateTime(...) to construct it.  As you'll see, the Calendars do NOT store the date themselves.

  Hope this helps.
  Chris R.


    Hello,

    Does anyone know how to translate back and forth between calendars, for example Gregorian vs. Hebrew?

    Thanks,
    Avi



Sat, 23 Oct 2004 11:45:14 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Julian to gregorian dates

2. Help: Julian date to Gregorian date conversion

3. Gregorian 2000AD _IS_ a leap year - Encyclopaedia Britannica

4. Hebrew I/O functions

5. Access, Paradox and Hebrew

6. Hebrew Static control - How to??

7. Hebrew fonts

8. learn ARAB, HEBREW, SERB, GERMAN, CHINESE, RUSSIAN online

9. Hebrew Edit Controls

10. Hebrew - Language Support

11. Programming for Hebrew using English Windows

12. Set/Get text from CRichEditCtrl in Hebrew

 

 
Powered by phpBB® Forum Software