function to transform the date 'Viernes, 4 de Enero 2013' to 2013-01-04 and function to transform spanish month to int