let date_object = new Date(); let format_string = "%F %T %z"; let formatted_string = strftime ( date_object, format_string ); Everything but %E %G %g %O and %+ are supported (as specified in "man strftime" of the "Linux man-pages project", release 4.14) Additionally %q is used as a non standard way to mark milliseconds