This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Time and Date


avatar
wright 42
From: -
Time and Date

How do I remove the "time"? I would just like to display the date for when news/articles are posted and not the time.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Time and Date
avatar
OP 42
From: -
Worked perfect thanks.
1 Re: Time and Date
avatar
Editor
0
From: -
You need to add the following code in the PHP part of the templates news_story and news_story_extended:

$date_array = explode(" ",$insert['newsstory_date']);

$insert['newsstory_date'] = $date_array[0];


and the following code in the PHP part of articles_summary:

$date_array = explode(" ",$insert['article_date']);

$insert['article_date'] = $date_array[0];

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.