Get started with PHP-Fusion

Start a New Thread

Users Participated

  • Vyper69
    Post made: 2
  • KasteR
    Post made: 1

Similar Discussions


  1. PHP-Fusion Support Forums
  2. PHP-Fusion 7 Support
  3. Content Administration

Show Date

This forum is for questions regarding the addition of content to your site

2 Replies 953 Views Last Updated on 2 years ago

Vyper69


Senior Member

#1

Posted 2 years ago

I was wondering if there was a way to show the date, without the time. Right now I use.
Code Gist: Download source  
".showsubdate()."


Is there something that is date only?

Posts: 474

Joined: 25/05/2012

KasteR


Senior Member

#2

Posted 2 years ago

You could use the PHP Date Function.
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$date = date("m/d/Y");
echo $date;[/syntaxhighlighter]
Ref: http://www.php.ne...n.date.php

Posts: 260

Joined: 14/07/2012

Vyper69


Senior Member

#3

Posted 2 years ago

Got it. I actually used this.

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$date = date("m/d/Y");
echo date('l jS \of F Y h:i:s A');[/syntaxhighlighter]

Posts: 474

Joined: 25/05/2012

Jump to Forum:
8 users are online
0 member and 8 guests