note 104562 rejected from function.date by danbrown
| From: | danbrown@php.net | Date: | Thu, 23 Jun 2011 14:34:36 +0000 |
| Subject: | note 104562 rejected from function.date by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180883@lists.php.net to get a copy of this message | ||
Note Submitter: banedon at gmail dot com
----
I have a really simple question but I can't figure it out since I'm kinda new to PHP.
I need to output a date from a given timestamp, but keeping the day at 1 (as a number).
What I currently have is
<?php
$cartRow->field_beginningdate[0]['value'] = date ( 'Y-m-j' ,
$new_sub_start_date);
?>
I want the j part to be a fixed "01" or "1".
Any suggestion of how to achieve this?