c# - Implicit conversion from type Char[] to string is not possible -


i want following

error: implicit conversion type char[] string not possible.

string pattern2 = (convert.todatetime(currmail.creationtime).tostring(" dd-mmm-yyyy hh-mm")).toarray(); 

does have idea on how deal this?

remove .toarray():

string pattern2 = convert.todatetime(currmail.creationtime).tostring("dd-mmm-yyyy hh-mm"); 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -