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

IsDate – PB Docs 2022 – PowerBuilder Library

IsDate – PB Docs 2022

IsDate

PowerScript function

Description

Tests whether a string value is a valid date.

Syntax

Argument

Description

datevalue

A string whose value you want to test to determine whether
it is a valid date

Return value

Boolean.

Returns true if datevalue is a valid date and false if it is not. If
datevalue is null, IsDate returns null.

Usage

You can use IsDate to test whether a user-entered date is valid
before you convert it to a date datatype. To convert a value into a date
value, use the Date function. The year value must be in the range 01 to
9999.

Examples

This statement returns true:

This statement returns false:

If the SingleLineEdit sle_Date_Of_Hire contains 7/1/99, these
statements store 1999-07-01 in HireDate:

See also

IsDate method for DataWindows in the section called “IsDate” 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