in reply to Perl CGI Date and Time picker with auto populate with current date and time

First of all, please have a read of HTML Generation functions should no longer be used in the documentation for CGI. The tone of that section should hopefully convince you not to use them in any new code.

As to the question itself, the general approach would be:

  1. Obtain the current date and time using your favourite function or module.
  2. Insert these as the default values in a number of select fields or better yet, an HTML5 datetime field.

Are you able to do either of these or neither? What have you tried? How did it fail to meet your needs?

  • Comment on Re: Perl CGI Date and Time picker with auto populate with current date and time