in reply to Re^2: Date format
in thread Date format
So, what ideas did you try and how did they fail?
You can help us help you better by showing us the code you have tried and telling us how it failed for you. That allows us to help you much better clear up your misunderstandings.
For example, you could start with this program:
#!perl use strict; use warnings; use Test::More; my $input_value = '02/08/2018'; my $desired_value = '2/8/2018'; # do stuff with input value: my $transformed_value = $input_value; $transformed_value =~ s!0!!g; # remove all zeroes is $transformed_value, $desired_value, "Conversion strips leading zero +es"; done_testing;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Date format
by jsuresh (Acolyte) on Sep 06, 2018 at 11:04 UTC | |
by Corion (Patriarch) on Sep 06, 2018 at 11:11 UTC | |
by marto (Cardinal) on Sep 06, 2018 at 11:11 UTC | |
by jsuresh (Acolyte) on Sep 06, 2018 at 11:51 UTC | |
by hippo (Archbishop) on Sep 07, 2018 at 12:44 UTC | |
by marto (Cardinal) on Sep 06, 2018 at 12:03 UTC |