RosettaCodeData/Task/Date-format/Wren/date-format.wren
2023-12-16 21:33:55 -08:00

10 lines
313 B
Text

import "os" for Process
import "./date" for Date
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"))