[erlang-questions] Date Conversion

Artem Teslenko ates@REDACTED
Wed Nov 14 10:46:31 CET 2012


the dirty way:

1> string:join([integer_to_list(list_to_integer(N)) || N <- string:tokens("2012/02/15", "/")], "/").
"2012/2/15"

On Wed, 14 Nov 2012, Lucky Khoza wrote:

> Hi Erlang Developers,
> 
> How do i convert date string: "2012/02/15" to 2012/2/15, just to get rid of
> trailing Zero.
> 
> 
> Kindest Regards
> Lucky

> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list