I'm new with VB and I need to write a code that will calculate days starting from a start date (x), adding (y) days per month till the present date (z), subtracting given days (i) and finally giving remain days (j). Can anyone please given some examples.
mevanga 0 Newbie Poster
Recommended Answers
Jump to PostThe dates and day are coming from :
1. Starting Date(x) : The date when the member started working,
2. Adding days per month(y) : Are days that are leave days added per month to each member,This you can easily calculate from the start date to the current date. …
Jump to PostPlease Read This
I'm having to decipher what you are asking, which means I dont understand the question fully. Please explain exactly the scenario so we are clear -- after you read the above link.
Jump to PostI assume you mean you understood my post. OK. Then you understood that
I'd recommend storing only leave days taken. The other two can easily be calculated when you need the values.
means the only value you store in the database is the number of leave days already taken.
…
All 10 Replies
DenisOxon 12 Posting Whiz
wavalker 0 Newbie Poster
mevanga 0 Newbie Poster
DenisOxon 12 Posting Whiz
mevanga 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
mevanga 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
mevanga 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.