RosettaCodeData/Task/Date-format/Wren/date-format.wren

11 lines
313 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
import "os" for Process
2023-12-16 21:33:55 -08:00
import "./date" for Date
2023-07-01 11:58:00 -04:00
var args = Process.arguments
if (args.count != 1) {
Fiber.abort("Please pass just the current date in yyyy-mm-dd format.")
}
var current = Date.parse(args[0])
System.print(current.format(Date.isoDate))
System.print(current.format("dddd|, |mmmm| |d|, |yyyy"))