Article date
From Photostand Wiki
article_date(format, showtime)
The article_date function will return the date when the article was posted.
[edit]
Parameters
- Format : String value - Default : simple
Defines the date format. Possible values :- simple : Basic format. Looks like 2006-1-1 12:00:00.
- advanced : Complete date. Looks like January 1 2006 12:00:00.
- Showtime : Boolean value - Default : True
Defines whether or not the time must be displayed.
[edit]
Examples
Simple date
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Article</title>
</head>
<body>
<div>
<h2><?php echo article_title(); ?></h2>
<h5>Posted on <?php echo article_date('simple', 0); ?></h5>
</div>
</body>
</html>
Here, the date will be something like "Posted on 2006-06-12".
Advanced date
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Article</title>
</head>
<body>
<div>
<h2><?php echo article_title(); ?></h2>
<h5>Posted on <?php echo article_date('advanced', 1); ?></h5>
</div>
</body>
</html>
Here, the date will be something like "Posted on June 16 2006 12:00:00".

