(Time.now.to_date - 2.days.ago.to_date).to_i
Description :
Time.now.to_date we will get date now with format : Fri, 5 Aug 2014
use to_i to return range date
Description :
Time.now.to_date we will get date now with format : Fri, 5 Aug 2014
use to_i to return range date
No comments:
Post a Comment