Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

Go to top

How i convert dataetime to int and string to Int

, 12 Jan 2013
DateTime datenow = DateTime.Now;int age=0;age =Convert.ToInt32(ddlyear.SelectedItem.Text).ToString();int result = 0;result =Convert.ToDateTime(datenow).ToString() - Convert.ToInt32(age).ToString();txtage.Text = result.ToString();

Revisions


  

Compare Revision Minor Date Status Editor
publicly available No 13-Jan-13 2:51 Available Sandeep Mewara
Formatting...
1 No 13-Jan-13 2:19 Available sumit kausalye

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

sumit kausalye

United States United States
No Biography provided

| Advertise | Privacy | Mobile
Web01 | 2.8.140922.1 | Last Updated 13 Jan 2013
Article Copyright 2013 by sumit kausalye
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid