Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » How to subtract some days/months to a date variable?
How to subtract some days/months to a date variable? [message #18498] Sat, 04 October 2008 09:10 Go to next message
kbyte is currently offline  kbyte
Messages: 87
Registered: July 2008
Member
Hi,

Please, could you tell me how do i subtract some months to a date variable?

Thank you

Alex
Re: How to subtract some days/months to a date variable? [message #18499 is a reply to message #18498] Sat, 04 October 2008 09:16 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Days - just do it Smile

Date d; .... d -= days;

Months:

Date AddMonths(Date date, int months);


Mirek
Re: How to subtract some days/months to a date variable? [message #18500 is a reply to message #18499] Sat, 04 October 2008 09:25 Go to previous message
kbyte is currently offline  kbyte
Messages: 87
Registered: July 2008
Member
Great!

Thank you

Alex
Previous Topic: VMware / Ubuntu problems
Next Topic: FindFile, get dir list
Goto Forum:
  


Current Time: Sat Apr 20 13:48:21 CEST 2024

Total time taken to generate the page: 0.57857 seconds