Taking medications for epilepsy does it has to be taken at the same time every day?

No. But it needs to be taken generally near the same time most days. If you are an hour or two off then it is ok.