Thanks for the reply.
Changed the code to DateSet, and that works better.