dovresti postare il codice, come converti le date?