×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

The Date Field

The Date Field

The Date Field

(OP)
I am using Visual FoxPro 3.0 and 5.0 but there seems to be a problem with my date fields. When I do a comparison with two date fields (both 2000), it give me the wrong output.

Could there be a problem with the way I am defining the date fields? Please help me out...

RE: The Date Field

Visual 3.0 did/does have a error in the date field. The problem will migrate to V5.0 if the database(s) were created in V3.0. The problem stems from the Set Century on command. If one date is saved with set century off and another date is saved with set century on and the dates will not compair correctly.

Try this.
set century on
use Database
replace all date_field with date_field
(do this for each date field you have in the database)
then do the date compair and see if it works correctly.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close