My Oracle Support Banner

Date Arithmetic in eScript (Doc ID 477175.1)

Last updated on AUGUST 03, 2023

Applies to:

Siebel Tools - Version 7.0.4 [14068] to 17.0 [IP2017] [Release V7 to V17]
Information in this document applies to any platform.


There are instances in which date arithmetic is required to implement certain business rules. Siebel eScript provides several date functions that allow users to build custom functions, for example, to determine the difference between two dates.
This document presents a set of functions that can be used in scripts to implement more complex business rules. For more information on the methods used in these scripts, refer to Siebel Bookshelf 2018 > Siebel eScript Language Reference.
NOTE: Sample code provided in this document is provided only as a guideline, and not as a final product to be used in a production environment. The code is provided as a starting point from which actual scripts can be built, and is intended to show how some of the functions provided by eScript can be used to perform more complex tasks. Your final code should include validation of the input parameters, such as adjusting for daylight savings time, and error handling. For general scripting best practices, please refer to <Document 477766.1>.


This document is informational and intended for any user.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Date Arithmetic Functions in eScript
 Sample Script Using These Functions

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.