[Pharo-users] Formatting Dates

sergio ruiz sergio.rrd at gmail.com
Wed Feb 6 15:16:31 EST 2019


I have been using this to format dates:

printFormat: #(3 2 1 $/ 1 1 2)

which goes like:

printFormat: formatArray
"Answer a String describing the receiver using the argument formatArray."

^ String
new: 16
streamContents: [ :aStream | self printOn: aStream format: formatArray ]

But i am unclear on how to assemble this formatArray to get a date like:

mm/dd/yyyy

any ideas?

Thanks!

----
peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20190206/30d2c736/attachment-0001.html>


More information about the Pharo-users mailing list