Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

DaysAfter – PB Docs 2021 – PowerBuilder Library

DaysAfter – PB Docs 2021

DaysAfter

PowerScript function

Description

Determines the number of days one date occurs after another.

Syntax

Argument

Description

date1

A date value that is the start date of the interval being
measured

date2

A date value that is the end date of the interval

Return value

Long.

Returns a long whose value is the number of days date2 occurs after
date1. If date2 occurs before date1, DaysAfter returns a negative number.
If any argument’s value is null, DaysAfter returns null.

Examples

This statement returns 4:

This statement returns -4:

This statement returns 0:

This statement returns 5:

If you declare date1 and date2 date variables and assign February
16, 2003, to date1 and April 28, 2003, to date2 as follows:

then each of the following statements returns 71:

See also

RelativeDate

RelativeTime

SecondsAfter

DaysAfter method for DataWindows in the section called “DaysAfter” in DataWindow Reference.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x