0% found this document useful (0 votes)
140 views

Date Escript

This document presents date functions that can be used in Siebel eScript to implement complex business rules involving date arithmetic. The functions allow adding or subtracting days, hours, minutes, and seconds from a date to return a new date. Sample code is provided as examples but are not intended for production use and do not include validation or error handling. The functions are a starting point for building actual scripts to perform more advanced date calculations.

Uploaded by

king007kumar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
140 views

Date Escript

This document presents date functions that can be used in Siebel eScript to implement complex business rules involving date arithmetic. The functions allow adding or subtracting days, hours, minutes, and seconds from a date to return a new date. Sample code is provided as examples but are not intended for production use and do not include validation or error handling. The functions are a starting point for building actual scripts to perform more advanced date calculations.

Uploaded by

king007kumar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Date in eScript Background There are instances in which date arithmetic is required to implement certain businessrules.

Siebel eScript provides date functions that allow users to build custom functions toknow the difference between two dates, add/subtract a number of days to a date, etc.This document presents a set of functions that can be used in scripts to implement morecomplex business rules. Sample code provided in this document is provided only as a guideline, and not as afinal product to be used in a production environment. None of the functions performany validation (example: daylight savings adjustment) of the input parameters orerror trapping. The code is provided as a start point from which actual scripts canbe built, and is intended to show how some of the functions provided by eScript canbe used to perform more complex tasks.Date arithmetic functions in eScript function AddToDate(sourceDate, nDays, nHours, nMinutes, nSeconds,nsign){ // Parameters :// sourceDate : Date object// nDays, nHours , nMinutes , nSeconds : Integer numbers// nsign : Can have two values : 1 or -1// 1 indicates to ADD to the sourceDate// -1 indicates to SUBTRACT from the sourceDate// Returns : A date object, after adding/subtracting ndays,hNours,nMinute

You might also like