Add Hebrew Date using a custom field
Last updated on
30 April 2025
Following instructions are the product of a forum discussion taken in Drupal Israel site: http://www.drupal.org.il/node/3749 and are based on Mooffie's code with help from Yuval Hagger.
1. In Computed code paste the code that you find here:
http://drupa.co.il/_files/forexternsites/drupal.org-node-622098.txt
2. In Display format paste this:
<?php
$display = $node_field_item['value'];
?>
3. If you choose to store it in the database, varchar with 25 characters will be fine.
Note: For English names and calculation of the Jewish data look inside the code for "ELUL".
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion