storing date for logs