Solved

date/time expression in FoxPro 8

Posted on 2010-08-13
4
694 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create Table - With Alias 5 526
Database Upscaling 9 107
Insert Sql data into Excel and Calculate a single Column 1 491
Templates to migrate from vfp to WPF 7 110
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…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

813 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

13 Experts available now in Live!

Get 1:1 Help Now