Is it possible to get the number of days between two dates formatted in this way: June 19, 2004 9:06 PM? Thanks in advance
| SitePoint Sponsor |
Is it possible to get the number of days between two dates formatted in this way: June 19, 2004 9:06 PM? Thanks in advance
s c r i p t s f o r y o u . n e t
ScriptsForYou
Look into converting the date to a Unix friendly date with strtotime() then dividing the difference by the number of seconds in a day.
And then you may want to format/round the number to 0, 1 or 2 decimal points using sprintf() or round()Originally Posted by Kusuri
T.
Yeah thats what I eneded up having to do.Originally Posted by T300
s c r i p t s f o r y o u . n e t
ScriptsForYou
Bookmarks