Jump to content

How to remake checking in months?


customercare

Recommended Posts

Hi,

how can i make that code to check in months and years (both) or month or year separately? Thanks.

<div class="custom">
 {{$date_joined = floor((strtotime("now")-strtotime("{$comment->author()->joined}"))/86400) ;}}  
<span class="leftinfo"><i class="fa fa-calendar"></i> $time of fappig:</span>
<span class="rightinfo">{$date_joined} Days</span>
</div>              

 

Link to comment
Share on other sites

I'm not sure but you can try it like this :

<div class="custom">
 {{$month_joined = floor((strtotime("now")-strtotime("{$comment->author()->joined}"))/86400) ;}}  
<span class="leftinfo"><i class="fa fa-calendar"></i> $time of fappig:</span>
<span class="rightinfo">{$month_joined} Days</span>
</div>    

I will try it on my local host and come with and edit if this code dose not work.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...