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 21-Feb-13 23:56pm
Edited 22-Feb-13 0: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
Your Filters
Interested
Ignored
     
0 Guruprasad.K.Basavaraju 350
1 Sergey Alexandrovich Kryukov 226
2 Shai Vashdi 220
3 OriginalGriff 183
4 Tadit Dash 135
0 Sergey Alexandrovich Kryukov 9,255
1 OriginalGriff 5,433
2 Peter Leow 4,100
3 Maciej Los 3,540
4 Abhinav S 3,333


Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 25 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid