Answer: I just had to cast the string to a date
# suitescript
c
Answer: I just had to cast the string to a date