Click here to Skip to main content
Rate this: bad
good
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
next
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
v2
Comments
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
good
Please Sign up or sign in to vote.

Solution 1

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

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

  Print Answers RSS
0 DamithSL 320
1 OriginalGriff 275
2 Sergey Alexandrovich Kryukov 187
3 Afzaal Ahmad Zeeshan 154
4 Peter Leow 115
0 OriginalGriff 7,510
1 DamithSL 5,494
2 Sergey Alexandrovich Kryukov 4,954
3 Maciej Los 4,936
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 25 Feb 2013
Copyright © CodeProject, 1999-2014
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