Avatar
@swift-4.2.4 import Foundation let formatter = DateFormatter() formatter.dateFormat = DateFormatter.dateFormat(fromTemplate: "YYYY-MM-dd", options: 0, locale: Locale(identifier: "ja_JP")) print(formatter.string(from: Date()))