Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-30 08:14:59

capa
Member
From: Montana, USA
Registered: 2005-09-10
Posts: 20

dispaly current date

I’d like to display the current date on a page.
I notice that the upm_datetime plug-in is no longer available.
How may I do this?

Thanks


“I like the look of my own text.”

Offline

#2 2006-01-30 09:17:43

Anark
Member
Registered: 2004-08-14
Posts: 101

Re: dispaly current date

Offline

#3 2006-01-30 10:53:19

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: dispaly current date

Try some php like <code><txp:php>echo date(“F jS Y”, time() + tz_offset());</txp:php> at <txp:php>echo date(‘H:i’, time() + tz_offset());</txp:php></code>. The first block does the date, and the second does the time.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#4 2006-01-31 04:13:29

capa
Member
From: Montana, USA
Registered: 2005-09-10
Posts: 20

Re: dispaly current date

Fabulous! Thank yee.


“I like the look of my own text.”

Offline

Board footer

Powered by FluxBB