- radha rani
- PowerBuilder
- Tuesday, 5 June 2018 04:03 PM UTC
Hi,
I want to use the serverdate and time in my program,
Please suggest how to write the code,
I created the below fucntion for serverdate
datetime ldt_server_datetime
********************************************************************
DECLARE my_cursor DYNAMIC CURSOR FOR SQLSA ;
PREPARE SQLSA FROM "SELECT GetDate() " ;
OPEN DYNAMIC my_cursor ;
FETCH my_cursor INTO :ldt_server_datetime ;
CLOSE my_cursor ;
return ldt_server_datetime
******************************************************************
How to use it in my application.
P.S : Creating an EXE no Datawindow and windows.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.