Re: using getDate on an arbitrary date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you for the response. It looks like I can use this
JK.
> On Jan 26, 2020, at 9:11 PM, Stefan A. <acid24@xxxxxxxxx> wrote:
> 
> Probably what you want is something like:
> 
> <?php
> $time = mktime(0, 0, 0, $month, $day, $year);
> if (false !== $time && -1 !== $time) {
>   $info = getdate($time);
> } else {
>   // error
> }
> 
> https://www.php.net/manual/en/function.mktime.php
> 
> On Mon, Jan 27, 2020 at 5:50 AM Jeffry Killen <jekillen@xxxxxxxxxxx> wrote:
> Hello;
> What I am looking for is a way to pass a date
> month/day/year to getDate and find out the 
> various array values associated with that date.
> 
> So the question is: how would I convert int mon/ int day/ int year
> to a time stamp? Looking at the various functions it is not
> clear to me.
> 
> Thank you for time and attention;
> JK



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux