Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
What day is it shell script, swift
#!/usr/bin/env swift
import Foundation
var dayString:String {
let dateFormatter = DateFormatter()
dateFormatter.setLocalizedDateFormatFromTemplate("EEEE")
return (dateFormatter.string(from: Date()))
}
print(dayString)
#https://www.raywenderlich.com/5027-scripting-in-swift-writing-a-script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.