Click here to Skip to main content
12,632,662 members (32,693 online)
Click here to Skip to main content

Tagged as

Stats

1.5K views
Posted

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 12-Jan-13 16:51 Available Sandeep Mewara
Formatting...
1 No 12-Jan-13 16: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

You may also be interested in...

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