How do I calculate the number of days a user is registered?

How about this way

since, System Time is in format


1 Like

Did you read this topic well?
I want to calculate number of day user registered,
Isn't it counted from now not from the past?

I got your concern, but it is just a follow up to the error[ What clock.duration needed and what your code were providing]. You can replace the System time block with you favorite variable.

1 Like

as you are storing it in millis second then i think you should try the block provided by @RamNaresh instead makeinstant

1 Like



1 Like

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