customercare 2 Posted December 15, 2020 Share Posted December 15, 2020 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 More sharing options...
The Grim Reaper 142 Posted December 15, 2020 Share Posted December 15, 2020 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 More sharing options...
customercare 2 Posted December 15, 2020 Author Share Posted December 15, 2020 Not work. Link to comment Share on other sites More sharing options...
customercare 2 Posted December 20, 2020 Author Share Posted December 20, 2020 Does anybody know? Link to comment Share on other sites More sharing options...
Recommended Posts