Results 1 to 6 of 6

Thread: NOW doesn't always return todays date?

  1. #1

    Thread Starter
    Member Redeye44us's Avatar
    Join Date
    Apr 2003
    Posts
    50

    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

  2. #2
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    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.

  3. #3
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    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.

  4. #4
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    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.

  5. #5
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Originally posted by taxes
    HI,

    "Date.Now always returns the current system date and time."


    Yes it does - (I have just checked it!!)
    ?

  6. #6
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    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
  •  



Click Here to Expand Forum to Full Width