Author Topic: Storing a date$ & time$  (Read 2526 times)

0 Members and 1 Guest are viewing this topic.

Offline Rich

  • Newbie
  • Posts: 8
    • View Profile
Storing a date$ & time$
« 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

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Storing a date$ & time$
« Reply #1 on: February 29, 2020, 06:43:22 pm »
OPEN “temp.txt” FOR OUTPUT AS #1
PRINT #1, DATE$
PRINT #1, TIME$
CLOSE
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Marked as best answer by Rich on March 02, 2020, 04:43:59 pm

Offline Rich

  • Newbie
  • Posts: 8
    • View Profile
Re: Storing a date$ & time$
« Reply #2 on: March 02, 2020, 09:43:54 pm »
Thank you!