QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Rich on February 29, 2020, 05:48:43 pm

Title: Storing a date$ & time$
Post by: Rich on February 29, 2020, 05:48:43 pm
Hello,

Is it possible to store a system date and time to a text file? I would like to log in with an employee Id and date/time stamp the entry.

Thank you,

Rich
Title: Re: Storing a date$ & time$
Post by: SMcNeill on February 29, 2020, 06:43:22 pm
OPEN “temp.txt” FOR OUTPUT AS #1
PRINT #1, DATE$
PRINT #1, TIME$
CLOSE
Title: Re: Storing a date$ & time$
Post by: Rich on March 02, 2020, 09:43:54 pm
Thank you!