asp.net - string variable date to double in c# -


in following code ,i need convert string double. code doesn't work.

string fdate="7/4/2013"; double nextdate = convert.todouble( fdate);

try this..

 datetime ddd=convert.todatetime("7/4/2013");  double dd = convert.todouble(convert.tostring(ddd.month) + convert.tostring(ddd.day) + convert.tostring(ddd.year)); 

it surely work


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -