I have an app that uses a date/time stamp when recording sales. I use NOW to create this stamp. It works fine, but if the user does not close the app each night, the date it returns does not change to the current date. Any ideas?
Thanks,
Joe
Printable View
I have an app that uses a date/time stamp when recording sales. I use NOW to create this stamp. It works fine, but if the user does not close the app each night, the date it returns does not change to the current date. Any ideas?
Thanks,
Joe
you could use a timer to fire every 24 hours but I don't know if any of the timers provided will allow you set it that long.
but, if it could be done, you could refresh the stamp with every tick.
It works fine, but if the user does not close the app each night, the date it returns does not change to the current date
Date.Now always returns the current system date and time.
You must be doing something to the system, or you are using the method improperly. You should record Date.Now when submitting the sale to the database.
HI,
"Date.Now always returns the current system date and time."
Yes it does - (I have just checked it!!)
?Quote:
Originally posted by taxes
HI,
"Date.Now always returns the current system date and time."
Yes it does - (I have just checked it!!)
hmm I completely misunderstood the question. Yes, I agree, the now() function returns the current date/time always.
oops.:blush: