or create the Date object and use the format modul...
# suitescript
b
or create the Date object and use the format module to create a datetime string to use with setText