|
-
Apr 1st, 2004, 04:12 PM
#1
Thread Starter
Member
NOW doesn't always return todays date?
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
-
Apr 1st, 2004, 04:18 PM
#2
Frenzied Member
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.
-
Apr 1st, 2004, 06:14 PM
#3
I wonder how many charact
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.
Last edited by nemaroller; Apr 1st, 2004 at 06:23 PM.
-
Apr 1st, 2004, 06:31 PM
#4
PowerPoster
HI,
"Date.Now always returns the current system date and time."
Yes it does - (I have just checked it!!)
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
Apr 1st, 2004, 08:42 PM
#5
I wonder how many charact
Originally posted by taxes
HI,
"Date.Now always returns the current system date and time."
Yes it does - (I have just checked it!!)
?
-
Apr 1st, 2004, 10:01 PM
#6
Frenzied Member
hmm I completely misunderstood the question. Yes, I agree, the now() function returns the current date/time always.
oops.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|