haroldjclements Posted October 12, 2004 Posted October 12, 2004 (edited) Hello All, I have set up a contract start date and a contract end date. I whist to send the method a date and for it to return true if the date is between the contract start and end dates. My problem is that I don't know how to do this! Any help will be greatfully received, Harold Clements I am using j#. Edited October 12, 2004 by haroldjclements Quote
eramgarden Posted October 12, 2004 Posted October 12, 2004 can you have a textbox for the "start date", a textbox for enddate, have calendars and populate the fields? http://www.dotnetjunkies.com/HowTo/47062D32-1A67-456A-9E2F-43E7F9D7130F.dcik Quote
Jeff B Posted October 19, 2004 Posted October 19, 2004 How about just: PublicFunction IsDateValid(ByVal dateToCheck As DateTime, ByVal startDate As DateTime, ByVal endDate As DateTime) AsBooleanIf dateToCheck >= startDate And dateToCheck <= endDate ThenReturnTrue ElseReturnFalse EndIf EndFunction Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.