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

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -