Jump to content

how to change datetimepickage selected value to dd/MM/yyyy


xchinjo

Recommended Posts

Hi,

 

You can use DisplayFormat property of your TDateTimeField

 

Also use FormatSettings:

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
{$ifdef COMPILER_14_UP}
  with FormatSettings do
{$endif}
  begin
    LongDateFormat := 'dd/mm/yyyy';
    ShortDateFormat := 'dd/mm/yyyy';
    DateSeparator:='/';
  end;
end;

Best regards.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...