datetime - Extract only date from gridview -


datetime date = datetime.parseexact(datagridview1.rows[i].cells[0].value.tostring(), "yyyy-mm-dd", system.globalization.cultureinfo.invariantculture); 

how extract date code?

while executing showing this

an unhandled exception of type 'system.formatexception' occurred in mscorlib.dll  additional information: string not recognized valid datetime. 


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -