I'm trying to call a function one argument is current time and Date and other is a file name, They both are strings. How can I convert Date()
to a string. I tried:
writeToFile(content: Date(), fileName: "jm.txt")
but it gave me error:
Cannot convert value of type 'Date' to expected argument type 'String'