Solución
solution.tsTypeScript
from datetime import datetime
def days_between(date_from: str, date_to: str) -> int:
# Parsea ambas fechas y retorna la diferencia en días
date_begin = datetime.strptime(date_from, "%Y-%m-%d")
date_end = datetime.strptime(date_to, "%Y-%m-%d")
return (date_end - date_begin).days
0respuestas