Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #107.55K
Ranked #4K
~157 People Reached
Favorite Forums
Favorite Tags
php x 1

1 Posted Topic

Member Avatar for Shanti C

[QUOTE=ditty;639831]hi.... I think you can use the following function to compare two dates. function dateDiff($dformat, $endDate, $beginDate) { $date_parts1=explode($dformat, $beginDate); $date_parts2=explode($dformat, $endDate); $start_date=gregoriantojd($date_parts1[0], $date_parts1[1], $date_parts1[2]); $end_date=gregoriantojd($date_parts2[0], $date_parts2[1], $date_parts2[2]); return $end_date - $start_date; } calling function is $dformat shows the special character used to seperate date,month and year. it can be …

Member Avatar for Shanti C
0
157

The End.