Code factorization, and getting the date also for starred item. I need it for a reliable import ETA.