Surprisingly, that worked. I just changed gmtime to localtime though because the times were a few hours off. Thanks for your help. It is greatly appreciated!!