[erlang-questions] Print Date

Artem Teslenko ates@REDACTED
Wed Nov 14 17:31:01 CET 2012


Use ~s instead of ~p in the format argument of io:format/2:

1> io:format("~s~n", ["2012/04/23"]).
2012/04/23

On Wed, 14 Nov 2012, Lucky wrote:

> Hi Erlang Developers'
> 
> I'm stuck here, I am trying to print date which is in this format "2012/04/23" using io:format/2, but I want it to be printed like this: 2012/04/23 without invited commas, how do I go about resolving this?
> 
> Kindest Regards,
> Lucky
> 
> To God Alone be the Glory...Amen.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list