mysql2date [ WordPress Function ]
mysql2date ( $format, $date, $translate = true )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Source
<?php
function mysql2date( $format, $date, $translate = true ) {
if ( empty( $date ) )
return false;
if ( 'G' == $format )
return strtotime( $date . ' +0000' );
$i = strtotime( $date );
if ( 'U' == $format )
return $i;
if ( $translate )
return date_i18n( $format, $i );
else
return date( $format, $i );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/mysql2date « WordPress Codex
Function Reference/mysql2date. Description. Translates dates from mysql format to any format acceptable by the php date() function ...
codex.wordpress.org - WordPress › Support » mysql2date() doesn't work!! Right??
I try to change the language of the date displayed in an plugin. My search on this issue suggested the use of the WP function mysql2date(). But no matter how ...
wordpress.org - mysql2date() WordPress function reference, arguments and source ...
Converts MySQL DATETIME field to user specified date format.
queryposts.com - Mysql2date | WP Code Snippets
Mar 30, 2011 ... Take a look at our Article Archives by Date page. Today, we'll construct this page by implementing a shortcode that fills in the chronological ...
wpcodesnippets.info
Kullanýcý Tartýþmalarý [ wordpress.org ]
- chlankboot on "Formatting Date to Eastern Time"
- songdogtech on "Formatting Date to Eastern Time"
- Deadtail on "Formatting Date to Eastern Time"
- ryanismean on "Comment date formatting not working."
- Ghidra99 on "mysql2date() doesn't work!! Right??"
- object81 on "mysql2date() doesn't work!! Right??"
- object81 on "mysql2date() doesn't work!! Right??"
- object81 on "mysql2date() doesn't work!! Right??"
- object81 on "mysql2date in ajax module broken"
- olivers on "mysql2date in ajax module broken"