SysTime & SysDate functions

Discussions about editing and cleaning data
Marc-Olivier Z
Posts: 16
Joined: September 30th, 2016, 12:48 pm

SysTime & SysDate functions

Postby Marc-Olivier Z » July 1st, 2018, 7:48 am

Morning all users and administrators.

I'm working to design a new data entry and I want the date and time be generated by the system. So I used the functions sysdate() and systime().
But the matter is in the fact that time/date update each time I have to move on again time/date question. I would like it keeps the values which appear the first time I moved on those questions.
Please, how should I do that???

Thanks for your answers!!!

Gregory Martin
Posts: 1005
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: SysTime & SysDate functions

Postby Gregory Martin » July 1st, 2018, 12:31 pm

You can do something like this:

PROC FIRST_TIME

preproc

    if visualvalue(FIRST_TIME) = notappl then
        FIRST_TIME = systime();
    endif;

Marc-Olivier Z
Posts: 16
Joined: September 30th, 2016, 12:48 pm

Re: SysTime & SysDate functions

Postby Marc-Olivier Z » July 2nd, 2018, 5:47 am

Thanks very much Gregory
It works now as I wanted :D


Return to “Editing”