CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Is it a weekday or the weekend?

Print topic Send  topic

Author Message
Waspman

Posts: 948
Posted: 04/28/2006, 4:29 AM

Anyone found a way to tell the difference from a date?

It's a golf course booking form with prices that are different at the weekend.

Found a few scripts on google, just wondered if anyone here had a solution.


Ta.
_________________
http://www.waspmedia.co.uk
View profile  Send private message
Waspman

Posts: 948
Posted: 04/28/2006, 5:47 AM

I've sorted it - VB's Weekday function.

:( Sorry for clutering the place
_________________
http://www.waspmedia.co.uk
View profile  Send private message
Chris__T


Posts: 339
Posted: 05/02/2006, 8:02 AM

It's ok. Can you paste the code or link to the function for us curious folk? :-)
View profile  Send private message
Waspman

Posts: 948
Posted: 05/02/2006, 8:11 AM

Dead easy..

DayNum= Weekday(Form.Control.Value)

1=Saturday /7=Sunday


Look at me giving something back:-D
_________________
http://www.waspmedia.co.uk
View profile  Send private message
Waspman

Posts: 948
Posted: 05/03/2006, 12:46 AM

sorry nearly right...

1 = vbSunday - Sunday (default)
2 = vbMonday - Monday
3 = vbTuesday - Tuesday
4 = vbWednesday - Wednesday
5 = vbThursday - Thursday
6 = vbFriday - Friday
7 = vbSaturday - Saturday

:-P
_________________
http://www.waspmedia.co.uk
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.