Solved

date/time expression in FoxPro 8

Posted on 2010-08-13
4
692 Views
Last Modified: 2012-08-13
What is correct format for date/time expression in FoxPro 8
0
Comment
Question by:shamel9873
  • 3
4 Comments
 
LVL 3

Expert Comment

by:AndrewJen
ID: 33431732
Can you be more specific?

Examples of the datetime() function:

tNewyear = DATETIME(YEAR(DATE( ) ) + 1, 1, 1)  && Next New Year
tToday = DATETIME( )
nSecondstonewyear = tNewyear - tToday
CLEAR
? "There are " + ALLTRIM (STR(nSecondstonewyear)) ;
   + " seconds to the next New Year."

CLEAR
SET CENTURY ON
SET DATE TO AMERICAN
? DATETIME(1998, 02, 16, 12, 34, 56) && Displays 02/16/1998 12:34:56 PM
0
 
LVL 33

Accepted Solution

by:
CarlWarner earned 500 total points
ID: 33432552
{^2010/08/15}
0
 
LVL 33

Expert Comment

by:CarlWarner
ID: 33434264
Thanks.

See the Date data type at the following link (that I always have trouble finding):

Visual FoxPro Data and Field Types
http://msdn.microsoft.com/en-us/library/ww305zh2(VS.80).aspx
0
 
LVL 33

Expert Comment

by:CarlWarner
ID: 33434294
And the explanation of the caret (^) is here:

StrictDateEntry Property
http://msdn.microsoft.com/en-US/library/txatcebx(v=VS.80).aspx
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
In  today’s increasingly digital world, managed service providers (MSPs) fight for their customers’ attention, looking for ways to make them stay and purchase more services. One way to encourage that behavior is to develop a dependable brand of prod…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now