Hi guys,
How to obtain a windows region date format?
TIA
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour
Hi guys,
How to obtain a windows region date format?
TIA
#ifndef HKEY_CURRENT_USER
#define HKEY_CURRENT_USER 0x80000001
#endif
function test()
local oReg
oReg := TReg32():New( HKEY_CURRENT_USER, "Control Panel\International", .f. )
? oReg:Get( "sShortDate" )
? oReg:Get( "sLongDate" )
oReg:Close()
return nilThanks Rao!
If you want to display date values in these formats, you can use
? cValToStr( dDateValue, cFormat )
For displaying the date values in Xbrowse using these formats, you can set oCol:cEditPicture := cFormat
Thanks for the tip Rao!