He creado este script para hacer cálculo de fecha entre una fecha y a día de hoy, pero por alguna razón tengo un número decimal.
Cómo puedo obtener el número de la fecha sin punto decimal ?
Trató de usar un resumen de la fórmula, pero que sucio, lo que la mejor manera de manejar esto?
set theDateWantedValue to "25/03/2019"
set [dayVal, MonthVal, YearVal] to the words of theDateWantedValue
set the text item delimiters to "/"
##set date_string to {d, ordinal, Y} as text
##set myotherDate to date_string
set dateDelaybetwentheDate to ((date (theDateWantedValue as string)) - (current date)) / days
set myResultDateRound to RoundDecimal(dateDelaybetwentheDate, 1, down)
on RoundDecimal(NumberToRound, DecimalPlace, UpDown)
set RoundFactor to 10 ^ DecimalPlace
NumberToRound * RoundFactor
round result rounding UpDown
result / RoundFactor
end RoundDecimal