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

Tagged as

How i convert dataetime to int and string to Int

, 12 Jan 2013 CPOL
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
2 - 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 | Terms of Use | Mobile
Web03 | 2.8.150302.1 | Last Updated 13 Jan 2013
Article Copyright 2013 by sumit kausalye
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid