Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: 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
Edited 22-Feb-13 1:13am
Chris Reynolds (UK) at 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 at 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 at 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 at 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
0 Sergey Alexandrovich Kryukov 8,478
1 OriginalGriff 6,516
2 Peter Leow 3,567
3 Zoltán Zörgő 3,386
4 Richard MacCutchan 2,397

Advertise | Privacy | Mobile
Web01 | 2.8.150123.1 | Last Updated 25 Feb 2013
Copyright © CodeProject, 1999-2015
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