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
It looks like your trying to get the age in years using DateTime.Now and the birth date.This will do just that.DateTime today = DateTime.Today;int calc1 = (today.Year * 100 + today.Month) * 100 + today.Day;int calc2 = (dateOfBirth.Year * 100 + dateOfBirth.Month) * 100 +...



Compare Revision Minor Date Status Editor
publicly available No 13-Jan-13 2:49 Available David_Wimbley
Updates in content. 254 changes had been made.
1 No 13-Jan-13 2:47 Available David_Wimbley


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


About the Author

Software Developer
United States United States
No Biography provided

| Advertise | Privacy | Mobile
Web04 | 2.8.140814.1 | Last Updated 13 Jan 2013
Article Copyright 2013 by David_Wimbley
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid