Skip to main content
added 23 characters in body
Source Link
FFrewin
  • 19.8k
  • 10
  • 48
  • 101

In your code you could use something like this:

$date = JFactory::getDate();    
echo $date->calendar('j F Y', false, true);
    

With the calendar method you can use the [PHP date format characters] PHP date format characters1 to format accordingly.

Other option:

JFactory::getDate()->format('%a %d %b %Y - %H:%M');

Read more:

In your code you could use something like this:

$date = JFactory::getDate();    
echo $date->calendar('j F Y', false, true);
    

With the calendar method you can use the PHP date format characters

Other option:

JFactory::getDate()->format('%a %d %b %Y - %H:%M');

Read more:

In your code you could use something like this:

$date = JFactory::getDate();    
echo $date->calendar('j F Y', false, true);
    

With the calendar method you can use the [PHP date format characters] 1 to format accordingly.

Other option:

JFactory::getDate()->format('%a %d %b %Y - %H:%M');

Read more:

Source Link
FFrewin
  • 19.8k
  • 10
  • 48
  • 101

In your code you could use something like this:

$date = JFactory::getDate();    
echo $date->calendar('j F Y', false, true);
    

With the calendar method you can use the PHP date format characters

Other option:

JFactory::getDate()->format('%a %d %b %Y - %H:%M');

Read more: