I've been looking for a date function/utility to compare 2 dates or even convert a normal date to jullinan date. I looked int to the PHP MAnula but found no such thing. Any suggestions.
CASE:
I have a news tool that i need to perform date validation/conversion.
thanks
--quan
Date compare and conversion functions.
Moderator: General Moderators
-
PingLeeQuan
- Forum Commoner
- Posts: 58
- Joined: Tue Sep 03, 2002 8:08 am
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
You could convert the 2 dates to timestamps and then do all the comparisons/maths on them you like:
http://www.php.net/manual/en/ref.datetime.php
You can convert UNIX timestamps to Julian Day using one of the calendar functions:
http://www.php.net/manual/en/ref.calendar.php
Mac
http://www.php.net/manual/en/ref.datetime.php
You can convert UNIX timestamps to Julian Day using one of the calendar functions:
http://www.php.net/manual/en/ref.calendar.php
Mac