Mar 21, 2004 #1 giridpi Programmer Dec 5, 2003 33 IN I want calculate month nd days from the given period. for example 30/06/1996 to 20/03/2004 in foxpro 2.6 dos. Please any one guide me Thank u Giri
I want calculate month nd days from the given period. for example 30/06/1996 to 20/03/2004 in foxpro 2.6 dos. Please any one guide me Thank u Giri
Mar 21, 2004 #2 JRB-Bldr Programmer May 17, 2001 3,281 US If you have: mdDate1 = {06/30/1996} && MM/DD/YYYY mdDate2 = {03/20/2004} Then: mnDays = mdDate2 - mdDate1 As far as breaking the mnDays down into Months + Days, you will need to write a routine to do that. I think that there might be a previous posting with code to do that, but you will need to use the Keyword Search to find it. Good Luck, JRB-Bldr VisionQuest Consulting Business Analyst & CIO Consulting Services CIOServices@yahoo.com Upvote 0 Downvote
If you have: mdDate1 = {06/30/1996} && MM/DD/YYYY mdDate2 = {03/20/2004} Then: mnDays = mdDate2 - mdDate1 As far as breaking the mnDays down into Months + Days, you will need to write a routine to do that. I think that there might be a previous posting with code to do that, but you will need to use the Keyword Search to find it. Good Luck, JRB-Bldr VisionQuest Consulting Business Analyst & CIO Consulting Services CIOServices@yahoo.com
Mar 22, 2004 #3 TheRambler Programmer Jan 23, 2003 523 BO Hi, See the post by Ramani from the VFP forum: Convert days into months thread184-242345 You could easily change it to the function you need. Upvote 0 Downvote
Hi, See the post by Ramani from the VFP forum: Convert days into months thread184-242345 You could easily change it to the function you need.
Mar 23, 2004 #4 TheRambler Programmer Jan 23, 2003 523 BO Here is another thread from the VFP forum: Help calculate age in years and number months between two dates thread184-805512 Upvote 0 Downvote
Here is another thread from the VFP forum: Help calculate age in years and number months between two dates thread184-805512