Ver Mensaje Individual
  #10  
Antiguo 07-05-2007
Nasca Nasca is offline
Miembro
 
Registrado: abr 2007
Ubicación: Almería (España)
Posts: 249
Reputación: 18
Nasca Va por buen camino
Al hilo de la última propuesta usa funciones directas para eso, yo al menos las uso para los filtros y todo va ok:

function DateToStr(Date: TDateTime): string; overload;

function DateToStr(const DateTime: TDateTime; const FormatSettings: TFormatSettings): string; overload;

Description

Use DateToStr to obtain a string representation of a date value that can be used for display purposes.

The first form of DateToStr is not thread-safe, because it uses localization information contained in global variables. The second form of DateToStr, which is thread-safe, refers to localization information contained in the FormatSettings parameter. Before calling the thread-safe form of DateToStr, you must populate FormatSettings with localization information. To populate FormatSettings with a set of default locale values, call GetLocaleFormatSettings.

Aunque también deberías tener en cuenta la posibilidad de usar los parámetros y "parámetro".AsDate
Responder Con Cita