Click here to Skip to main content
12,700,681 members (33,642 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET
In that form collect week amount from customer for
current week only.Don't allow the user to pay the amount before one week
and next week.If the Amount is paid in the current week after that the
entry is in the next week only.

Can any one help me to generate this logic..

[edit]SHOUTING removed, spurious code block removed - OriginalGriff[/edit]
Posted 22-Feb-13 0:56am
Updated 22-Feb-13 1:13am
Chris Reynolds (UK) 22-Feb-13 6:05am
What have you tried so far? Have a go and then post what you've done - don't expect us to write all your work for you.
OriginalGriff 22-Feb-13 6:13am
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
ArunAmalraj 22-Feb-13 6:19am
You can use the Calendar.GetWeekOfYear method to get the week number of a date

And allow to make payments only after ((week number)+1) weeks.
Vardhan Desai 25-Feb-13 0:43am
You are using SQL, MySql or Oracle even specify its version.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Get week from some date
Debug.Print(DateDiff(DateInterval.Weekday, DateValue(Now), datevalue($anydate$)))

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 25 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100