Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hii All,
I m trying to change data format according to selected language in drupal 7..I m using 2 language English and arabic and i want to change date for arabic site . I m using format_date function of drupal but its not working.
Code:
global $language;
format_date($offer->created,'custom','d M Y',NULL,$language->language);
Thanks All.
Comments
Comment #0.0
hitesh-jain CreditAttribution: hitesh-jain commentedFont size
Comment #0.1
hitesh-jain CreditAttribution: hitesh-jain commentedN
Comment #1
vijaycs85Ok, This can't be critical. Setting it normal. Please refer https://drupal.org/node/45111
Comment #2
hitesh-jain CreditAttribution: hitesh-jain commented