switch dtype {
| #LAST_DAY_OF_MONTH
| #MMM_YYYY =>{
let value = switch dtype.dateValue {
| Some(a) => a->Date.toString
| None => ""
}
let newDate = parseString(value)->add(15.0,#day)
{...dtype, dateValue : parseDate(newDate)}
}
| _=>
}
This has type: t
Somewhere wanted: unit
while checking the condition getting the above error. Here I am trying to convert date value using day js.