Cron job to delete records on a certain date and time

404 Views Asked by At

I have never used a cron job before so I'm looking for a little help. Basically what I need is for records to be deleted at a certain date and time that is set by the user. I have a few different tables so I don't know if I can create one script to do this for all of them or if I need to create a separate one for each table. The field that has the expiration time for the record is called exptime. Also, how can I set time to CST as this is the time zone that I am in.

0

There are 0 best solutions below