Format a date value with printf in PHP
Description
The following code shows how to format a date value with printf.
Example
<?php
printf( "%02d/%02d/%d", 3, 24, 2008 ); // Displays "03/24/2008"
?>
The code above generates the following result.
The following code shows how to format a date value with printf.
<?php
printf( "%02d/%02d/%d", 3, 24, 2008 ); // Displays "03/24/2008"
?>
The code above generates the following result.