Loading ...
Sorry, an error occurred while loading the content.

FW: [PBML] DATE problem

Expand Messages
  • Katus Waldemar
    ... Have a look at the sprintf function. my( $day, $month, $year ) = ( localtime $date_time )[3,4,5]; my $date_all = sprintf %02d%02d%04d , $day, $month + 1,
    Message 1 of 1 , Dec 5, 2002
    • 0 Attachment
      : $date_all="$day_ok$month_ok$year_ok\n" if $day <= 9;
      : $date_all="$day$month_ok$year_ok\n" if $day > 9;

      Have a look at the sprintf function.

      my( $day, $month, $year ) = ( localtime $date_time )[3,4,5];

      my $date_all = sprintf "%02d%02d%04d", $day, $month + 1, $year + 1900;

      HTH,

      Charles K. Clarkson
      --
      Head Bottle Washer,
      Clarkson Energy Homes, Inc.
      Mobile Home Specialists
      254 968-8328

      You are a big man!!!
      THX!

      Waldek
    Your message has been successfully submitted and would be delivered to recipients shortly.