Hide Image/Video after 24 Hour of uploading


#1

Hello,
I am working on e-commerce market app.
In that vendor upload video/images for marketing that can show at User Side as ad or (Whatsapp status timeline)

That ad should be removed from list after 24 hour of uploading.
So, How to set a timer that remove item from array after comparing current time and date with datetime provide at upload image/video

Thank you.
i haven’t implemented any code now, if need any more help please ask in comment