Hi,
Is there a function available to convert date into the Following Format
"07-Jan-2010"
Date() -> "07-Jan-2010"
Regards
Anser
local tDate
SET DATE ITALIAN
SET TIME FORMAT TO 'HH:MM:SS PM'
tDate := DateTime()
MsgInfo( TtoC( tDate ) )
MsgInfo( TtoC( tDate, 2 ) )
MsgInfo( cValToStr( tDate, 'DD-MMM-YYYY' ) + ' ' + TToC( tDate, 2 ) )
I feel dealing with date and time values separately have become things of past. Now datetime variables can be used directly.
SELECT Branch_Short_Name, Last_Upload, CONVERT(varchar(10), Last_Upload, 108) as UploadTime FROM Branches
cValToStr( tDate, 'DD-MMM-YYYY' ) + ' ' + TToC( tDate, 2 )
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 73 guests