The recent group has been asked phpmywind date function How to call, today take time to organize out.
Display in month/day format:
- <?php Echo mydate (' m-d ', $row[' posttime ']);?>
Effect:
- · Baidu and Facebook become the world's fastest growing brand 01-17
Display in year/month/day/minute/second format:
- <?php Echo getdatetime ($row[' posttime ']);?>
Effect:
- · Baidu and Facebook become the world's fastest growing brands 2012-01-17 11:12:05
Display in year/month/day format:
- <?php Echo getdatemk ($row[' posttime ']);?>
Effect:
- · Baidu and Facebook become the world's fastest growing brands 2012-01-17
Display in timestamp format:
- <?php Echo getmktime ($row[' posttime ']);?>
Effect:
- · Baidu and Facebook become the world's fastest growing brand 1326769925
The above four kinds of display effect hope to be helpful to you.
Without consent may not be reproduced: excellent AI interactive? Phpmywind Tutorial: About Date Function call Grooming
Phpmywind Tutorial: About Date Function call Grooming