[erlang-questions] Print Date

Fredrik Andersson sedrik@REDACTED
Wed Nov 14 17:37:00 CET 2012


Here is a good resource on learning Erlang, please read it
http://learnyousomeerlang.com/content

When you know what function you need to use but want to change some minor
behaviour check the documentation for it http://erldocs.com/ has a good
search function for finding the documentation for most Erlang functions.

On Wed, Nov 14, 2012 at 5:31 PM, Artem Teslenko <ates@REDACTED> wrote:

> 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
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20121114/6fd725ce/attachment.htm>


More information about the erlang-questions mailing list