Helper function to left pad date parts with zeros.
Provided because this is needed so often with dates.
int $value: The value to pad.
int $size: (optional) Total size expected, usually 2 or 4. Defaults to 2.
string The padded value.
includes/ date.inc, line 1086
- Date API functions.