Ver Mensaje Individual
  #6  
Antiguo 21-12-2005
Avatar de dec
dec dec is offline
Moderador
 
Registrado: dic 2004
Ubicación: Alcobendas, Madrid, España
Posts: 13.107
Reputación: 34
dec Tiene un aura espectaculardec Tiene un aura espectacular
Hola,

Copio y pego de la ayuda de Delphi acerca de la variable "ShortDateFormat":


Cita:
Empezado por Ayuda de Delphi
This example uses a label and a button on a form. When the user clicks the button, the current date displays in the caption of the label. Because some of the date variables are assigned new values, the format of the date in the label changes. For example, if the date is 9/15/94, the date displays as 9-15-1994.

Código Delphi [-]
procedure TForm1.Button1Click(Sender: TObject);
begin
  DateSeparator := '-';
  ShortDateFormat := 'm/d/yyyy';
  Label1.Caption := DateToStr(Date);
end;
No veo porqué, cambiando el formato de la fecha del ejemplo a "MM/dd/yyyy" no funcionaría... no lo he probado y puedo estar equivocado, pero, tal vez podrías probar a ver si te va bien o qué.
__________________
David Esperalta
www.decsoftutils.com
Responder Con Cita