Page 1 of 1

Date Syntax

Posted: Fri Jan 30, 2009 12:10 pm
by Graham
Hi David,
Long time no write, hope you and yours are OK.

I'm writing to ask for your help with the date syntax, in my Viewtopic_body.html
I have the following

Code: Select all

 <div class="post">
				<h3>{postrow.POST_SUBJECT}</h3>
				<div class="content">{postrow.MESSAGE}</div><br /><br />
				<div class="author">copyright <br /><strong>{postrow.POST_AUTHOR}</strong></div>
				
			</div>
As you know my site is a poetry site, so at the bottom of every post I add a copyright notice, I would like, under that, to have the date inserted, what is the syntax for doing this please?

Thanks
Graham

Re: Date Syntax

Posted: Fri Jan 30, 2009 12:28 pm
by DavidIQ
Glad you're still at it :)

You can try using {postrow.POST_DATE}

Re: Date Syntax

Posted: Fri Jan 30, 2009 12:58 pm
by Graham
Hi David,

Do I need to add something like this ?
<div class="date">{postrow.POST_DATE}</div>

or just
{postrow.POST_DATE}

Re: Date Syntax

Posted: Fri Jan 30, 2009 1:23 pm
by DavidIQ
That's really going to be up to you if you want to wrap a div tag around it but I don't think there's a date class in the stylesheet.

Re: Date Syntax

Posted: Fri Jan 30, 2009 1:54 pm
by Graham
Thanks David
Just added {postrow.POST_DATE}
it works fine

Take Care
Graham