Click here to Skip to main content
11,417,750 members (46,012 online)
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
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 +...

Revisions


  

Compare Revision Minor Date Status Editor
2 - 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

License

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

Share

About the Author

David_Wimbley
Software Developer
United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150427.4 | Last Updated 13 Jan 2013
Article Copyright 2013 by David_Wimbley
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid