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 -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -