Re: Convert string to date

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

 



There are date functions that should allow you to manipulate and work with 
date's and their corresponding attributes. Check them out.

For example, if you pass a date as a parameter to the 'mktime()' function you 
will get returned an integer value that represents the amount of seconds 
passed since 1970 (or around there). By working with these 
date-converted-to-integer values you can find out what date is lower or higher.

Just make sure that you pass the 'mktime()' function the appropriate 
parameters. This may require that you break up the date into days, months, year etc.

Cheers

Tryst 


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux