Aug 12, 2002 #1 MEGUIA Programmer Joined Sep 26, 2001 Messages 62 Location 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
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
Aug 12, 2002 1 #2 danceman Programmer Joined Jun 3, 2002 Messages 1,012 Location US 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 Upvote 0 Downvote
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
Aug 12, 2002 1 #3 ramani Programmer Joined Mar 15, 2001 Messages 4,336 Location AE 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 Upvote 0 Downvote
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