Convert DateTime to formated String on Pharo 11

56 Views Asked by At

DateAndTime now asString returns a string in a format like YYYY-MM-DDThh:mm:ss.s+ZZ:zz:z

Is it possible to create a String based on a DateTime but with a different format?

1

There are 1 best solutions below

0
EstebanLM On BEST ANSWER

You can use ZTimestamp for that: https://github.com/svenvc/ztimestamp