Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ServiceNow: Building Powerful Workflows

You're reading from   ServiceNow: Building Powerful Workflows Automating IT Service Management

Arrow left icon
Product type Course
Published in Aug 2017
Publisher Packt
ISBN-13 9781788628730
Length 1330 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (3):
Arrow left icon
Tim Woodruff Tim Woodruff
Author Profile Icon Tim Woodruff
Tim Woodruff
Martin Wood Martin Wood
Author Profile Icon Martin Wood
Martin Wood
Ashish Rudra Srivastava Ashish Rudra Srivastava
Author Profile Icon Ashish Rudra Srivastava
Ashish Rudra Srivastava
Arrow right icon
View More author details
Toc

Table of Contents (39) Chapters Close

Title Page
Credits
Preface
1. Module 1 FREE CHAPTER 2. The Interface 3. Lists and Forms 4. UI Customization 5. Understanding Data and Relationships 6. Tasks and Workflows 7. UI and Data Policies 8. User Administration and Security 9. Introduction to Scripting 10. The Server-side Glide API 11. The Client-side Glide API 12. Server-side Scripting 13. Client-side Scripting 14. Debugging 15. Pro Tips 16. Module 2 17. Getting Started with Service-Now 18. Performing Core Configuration and Management Tasks 19. Building Data-Driven Application 20. Configuring Alerts and Notifications 21. Building and Configuring Reports 22. Creating and Configuring Workflow Activities 23. Auditing and Diagnosing Service-Now 24. Module 3 25. ServiceNow Foundations 26. Developing Custom Applications 27. Server-Side Control 28. Client-Side Interaction 29. Getting Things Done with Tasks 30. Events, Notifications, and Reporting 31. Exchanging Data – Import Sets, Web Services, and other Integrations 32. Securing Applications and Data 33. Diagnosing ServiceNow – Knowing What Is Going On 34. Packaging with Applications, Update Sets, and Upgrades 35. Making ServiceNow Beautiful with Service Portal and Custom Interfaces 36. Bibliography

GlideDateTime


The GlideDateTime class is for working with date/time fields and date/times in general.

Constructing a new GlideDateTime object using the new keyword with no arguments initializes it to the current date and time in GMT. You can also initialize while passing in an argument: either another GlideDateTime object or a date-formatting string (in the UTC timezone) in the format: yyyy-MM-dd HH:mm:ss.

Adding or removing time

There are multiple methods for adding or removing time from a GlideDateTime object once it's initialized. Here are a few of the more useful ones.

The add() method accepts one of two types of arguments: either a GlideTime object (an object containing a specific duration or amount of time) or a number of milliseconds.

You can add a specific number of days (local time or UTC) using addDaysLocalTime() or addDaysUTC(). Neither method returns a value.

The same is true for adding time week-by-week (addWeeksLocalTime()and addWeeksUTC()), month-by-month (addMonthsLocalTime()and...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime