Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fox2.6 date formats in VFP6

Status
Not open for further replies.

mpgalvin

Programmer
Feb 5, 2001
119
0
0
IE
Using FP2.6, I always used to

BROWSE FOR BETWEEN(T_DATE1, {8/3/2001}, {12/12/2002})

to find records between 2 dates. Now of course, when I use {8/3/2001} I get the old "Ambiguous date/datetime constant..." message. I really don't want to have to type in {^2001-03-08} every time I want to use a date constant, so is there any way around this, or has the Y2K 'bug' struck again :)
 
Go to tools, options, general tab and turn strict date checking off.

Personally, however I think this option should have been named 'Set Date Bugs On', but that is just my humble opinion.

 
put the following instruction in your program.

Set Strictdate to 0. The setting is zero. If you have a project go into to project options and set strictdate to 0 and set to default.

I recompile about 500,000 lines of 2.6 code to v.6 everyday without errors.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top