DateFormat

  • Thread starter Thread starter Catalin Lungu
  • Start date Start date
C

Catalin Lungu

Hi,
How can I change the date format for an .sdf file from mm/dd/yy to dd/mm/yy.
I receive data from SQL Server to a PDA. The format date to SQL Server is
dd/mm/yy and I like to work with this format.

Thanks in advance,
Catalin
 
The way the dates are displayed are depending of the language or culture
settings.
You can manualy change the display by choosing a iFormatprovider or a string
to pass in oDatetime.ToString

In my code it looks like this:

oControl:Text := oRSForm:GetDateTime(cControl ):ToString('dd-MM-yyyy')

hth,

Erik Visser
 
Back
Top