Kindly Find this Screen shot
How to dsiplay the same date every month .
I used this code
function convertDays($days){
return $seconds = $days * 86400;
}

/**
* Convert a number of months into UNIX timestamp seconds
* @param int months : Number of months
* @return int seconds : Lenght of number of days in seconds
*/
function convertMonths($months){
return $seconds = $months * 2635200; // Seconds for 30.5 days
}

and I called timestamp() ;at the opening of every page
Kindly Help me with this issue.

CommentFileSizeAuthor
scn1.png202.09 KBramasubramaniam

Comments

ramasubramaniam created an issue. See original summary.

damienmckenna’s picture

Assigned: ramasubramaniam » Unassigned
Priority: Critical » Normal
Status: Active » Fixed

Months have different amounts of days each month, so you won't be able to just add a fixed number of seconds to get the same day each month. You'll have to use date_add() to increment a specific date by one month.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.