Working sample for correct display dayly/weekly/monthly/year