Date in Hebrew

motionmountain
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Sep 29, 2006 9:23 pm

Date in Hebrew

Postby motionmountain » Fri Sep 29, 2006 9:27 pm

I have a hebrew web page (even though I cannot read or speak hebrew)
on http://www.motionmountain.net/hebrew.html

and I would like to add the hebrew date (so far, it says 15.9.2006).

Could somebody post it for me, so that I can copy/paste it into the
html? Thank you in advance

      MM

User avatar
mtk
Joomla! Guru
Joomla! Guru
Posts: 856
Joined: Sat Nov 12, 2005 10:55 pm
Location: Israel
Contact:

Re: Date in Hebrew

Postby mtk » Sat Sep 30, 2006 9:39 am

I guess you are not even a Joomla user...  :laugh:

15 בספטמבר 2006

the right alignment does not work here currectly, but it will be OK when you copy & paste it.
"In a world without walls and fences,
who needs Windows & Gates?"

http://www.smartmtk.com | http://www.lighthost.co.il/webhosting-for-joomla

ozinm
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sat Feb 11, 2006 12:03 pm
Contact:

Re: Date in Hebrew

Postby ozinm » Sat Sep 30, 2006 1:35 pm

on a slightly different tack if you are after conversion from the Gregorian to the Jewish calendar this module works quite well:
http://www.joomlaya.com/component/optio ... ,category/

User avatar
davidgal
Joomla! Guru
Joomla! Guru
Posts: 961
Joined: Sat Aug 20, 2005 9:19 am
Location: Israel
Contact:

Re: Date in Hebrew

Postby davidgal » Mon Oct 02, 2006 10:38 pm

It is also worth knowing that PHP has a built in function that does Gregorian to Jewish translation. It requires only a one line change to have dates shown as Jewish dates in Joomla!
David Gal
joomla.org.il

ozinm
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sat Feb 11, 2006 12:03 pm
Contact:

Re: Date in Hebrew

Postby ozinm » Tue Oct 03, 2006 9:21 am

Oooh, now that could be very handy. Especially as it would probably be quite a quick hack to modify one of the Joomla Calendar components to display Jewish dates.

I'm a bit of a newbie with PHP but generally OK with languages so I think I'm going to have to play with function I didn't know existed!

For anyone else interested here's a link to the PHP function:
http://www.w3schools.com/php/func_cal_jdtojewish.asp
along with lost of other calendar functions here:
http://www.w3schools.com/php/php_ref_calendar.asp

All the best

M

jafarsalam
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Feb 07, 2007 4:58 am

Re: Date in Hebrew

Postby jafarsalam » Mon Feb 26, 2007 5:53 am

Hi David;

We have just post a new page and wanted to display the heberew date with hebrew fonts. can you advise how we can achieve this.

we use the php code :

$gregorianMonth = date(n);
$gregorianDay = date(j);
$gregorianYear = date(Y);

$jdDate = gregoriantojd($gregorianMonth,$gregorianDay,$gregorianYear);

$hebrewMonthName = jdmonthname($jdDate,4);

$hebrewDate = jdtojewish($jdDate);

list($hebrewMonth, $hebrewDay, $hebrewYear) = split('/',$hebrewDate);

echo "$hebrewDay $hebrewMonthName $hebrewYear";
?>

which shows the correct date , but the font need to be in hebrew.

thanks

Jeff

mordechai
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Tue Dec 25, 2007 8:58 pm

Re: Date in Hebrew

Postby mordechai » Sun Feb 07, 2010 9:40 am

I need this too.
I have a list of all the articles in a category, and I need a Hebrew (Jewish) date showing.
Thanks


Return to “Hebrew Forum”

Who is online

Users browsing this forum: No registered users and 0 guests