Calculate the length of the day

hello everyone, here I want to ask something that many people might already know but I don’t know yet, how to calculate the length of days like 20 days ago or 2 months ago and 1 year ago?

simple use cclock component add days or months or year as you like

In date picker i have picked this date


If not pls elaborate what you want? If you have the dates in database, and want to show like days ago, months ago or yeasr agao mean, just det the date difference between stored date in db and conrrent date then use mathematical calcu to show it as you like

for more ref this guide [Guide] How to use the CLOCK

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.