Hi All,
I have datetime field in MySql, but I don't know how to write it?
I try with FW_DTOT(date()) but it shows '25-08-2017 00:00:00'
Thanks in advance,
oRs:Fields("Date"):Value := Dtoc(date())+" "+Time()
oRs:Fields('datetime'):Value := FW_STR2DT(FW_DT2STR(date())+' '+time())
nageswaragunupudi wrote:Mr Dutch
oRs:DateTimeField := DateTime() // current datetime
oRs:DateTimeField := STOT( "20111010221020" ) // "YYYYMMDDHHMMSS"
dDate := Date()
tDateTime := DateTime()
oServer:Insert( "mitable", { "numfield", "datefield", "datetimefield" }, ;
{ 99, dDate, FW_DT2STR( tDateTime ) } )
dDate := Date()
dDatePart := Date()
cTimePart := TIME()
oServer:Insert( "mitable", { "numfield", "datefield", "datetimefield" }, ;
{ 99, dDate, FW_DT2STR( dDatePart ) + " " + cTimePart } )
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 67 guests