Solved

date/time expression in FoxPro 8

Posted on 2010-08-13
4
698 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 our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

680 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