NewsPro FAQ
> Customisation > How can I include part of a new
item's date, or do any advanced date customisation?
| |
To do this, you can use the time variables that NewsPro
generates automatically. Use these as you would any other
variable (i.e. $newsname). Note that you can only use these if
editing ndisplay.pl manually -- only the standard <InsertDate>
is available if editing your news style via Change Settings.
The variables are:
$Year $Month_Day (Day of the month) $Week_Day (Number representing day of week. Sunday = 0, Saturday = 6) $Week_Days[$Week_Day] (The full name of the current weekday) $Month (Number of the current month, using the method computers count by: January = 0, December = 11) $ActualMonth (Number of the current month, as humans count: January = 1) $Months[$Month] (Full name of the current month) $Hour $Minute $Second $Time_Zone $AMPM (equal to either AM or PM, and only if you have enabled AM/PM times in Advanced Settings) |
|
| |
Back to NewsPro
FAQ
|