Click here to Skip to main content
15,920,383 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using VS 2010.

I have 3 integers.
month, day, year

Each have values assigned.

what is the real datatype format used in VC++ for date time?

how can i join the values to get a datetime format?

and how can i find the difference btn that date and the current date?
Posted

You probably need the mktime()[^] function.
 
Share this answer
 
Hello,

use this constructor to create object of DateTime Class and pass values accordingly.

http://msdn.microsoft.com/en-us/library/xcfzdy4x.aspx[^]

Once you get this , Go through this link which will guide you how to use find DateDifference :


http://www.c-sharpcorner.com/uploadfile/dipalchoksi/datediff_cs_dc09132006172429pm/datediff_cs_dc.aspx[^]
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900