Summary
The GlideDateTime class is specifically used for Date and Time values, as recommended by ServiceNow best practices. This is supported by the Glide API as well.
1
Formatting and conversion of Date and Time values can be achieved through the GlideDateTime class.
1
According to