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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

THE EQUIVALENT TIMEVALUE VB FUNCTION IN VFP 6.0 OR 7.0 2

Status
Not open for further replies.

MEGUIA

Programmer
Sep 26, 2001
62
PR
Hi,

I want to know if there is an equivalent timevalue function in vfp 6.0 or 7.0, if there not how do I caonvert an string in an time value.

Example
x = timevalue("12:30 P.M")

Result

x = 12:30:00 P.M

Thank You
 


datatime() returns the system data and time
OR
datetiem(2002,08,12,14,20,11)
returns the year,nonth,day,hour,min,sec

you can then use
hour() ,minute(), seconds() to retrive time items
Attitude is Everything
 
HI
May be this is what you are looking for..


x = CTOT("08/12/2002 12:10:45") && CharacterToTime
x = CTOD(DATE()) && CharacterToDate
x = TTOC(DATETIME()) && DateTimeToCharacter
x = TTOD(DATETIME()) && DateTimeToDate

:) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top