when date is come is 3 days ago or not today how to calculate time difference b/w them. I want result in hh:mm:ss using moment in react native.
Final result like this: example if the clockin is 3 days ago from today then time will be 72:56:59 something like this.
I try to use this
var ax = moment( new Date().toLocaleString(), "DD/MM/YYYY HH:mm:ss" ).diff( moment( "27/02/2023 07:16:55", "DD/MM/YYYY HH:mm:ss" ) );
But not working.. Pls help. I try to solved last two days