Topic: Help: Get the Current month as Digit MM for TextBox ?
Hello MVDs
I need load my TextBox with the Current month with only 2 Digit like (01) for January, Please help
I try using the Date Time Picker by this code and then copy it to the TextBox but the TextBox show to the full date and I need only the month
procedure Form1_OnShow (Sender: TObject; Action: string);
begin
Form1.DateTimePicker1.Format := 'MM';
Form1.Edit1.Text := DateToStr (Form1.DateTimePicker1.Date);
end;
One can learn and graduate or stay behind.