Import datetime in tasks