Closed (fixed)
Project:
Date
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2018 at 13:49 UTC
Updated:
8 Nov 2018 at 21:19 UTC
Jump to comment: Most recent
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.
| Comment | File | Size | Author |
|---|---|---|---|
| scn1.png | 202.09 KB | ramasubramaniam |
Comments
Comment #2
damienmckennaMonths 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.