GlideDateTime The GlideDateTime class provides methods for performing operations on GlideDateTime objects, such as instantiating GlideDateTime objects or working with glide_date_time fields. In addition to the instantiation methods described below, a GlideDateTime object can be instantiated from a glide_date_time field using the getGlideObject() method (for example, var gdt = gr.my_datetime_field.getGlideObject();). Some methods use the Java Virtual Machine time zone when retrieving or modifying a date and time value. Using these methods may result in unexpected behavior. Use equivalent local time and UTC methods whenever possible. For additional information, refer to GlideDateTime on the ServiceNow Developers site. See the ServiceNow Developers site for API information. GlideDate and GlideDateTime examplesThe GlideDate and GlideDateTime APIs are used to manipulate date and time values.