CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 ddd and dddd date format support in CCS

Print topic Send  topic

Author Message
dhodgdon

Posts: 80
Posted: 04/20/2005, 12:23 PM

Yes Software provided great support enabling this format for me. I wanted to enter this as a separate topic to aid others who may search for ddd and dddd format help. The work around required a new DatePicker.ccl which the support group sent me. Since there is no way to attach a file to these posts, I will send you the file if you send me a PM that includes your email address. I suspect that Yes Software support will be able to provide it to you if you contact them and reference support case #983912341.

The work around is a three step process. Step 1 & 2 require changes to the Common.asp file. Step 3 installs a new DatePicker.ccl

Step 1. To class clsCCSDateConstants -> Private Sub Class_Initialize() function add
...
DateMasks("ddd") = 0
DateMasks("dddd") = 0
End Sub

Step 2. To CCParseDAte function add another CASE operator:
...
Case "ddd", "dddd"
Dim DayArray, DayNumber, DayName
DayNumber = 0
DayName = UCase(DatePartStr)
If MaskPart = "ddd" Then _
DayArray = CCSDateConstants.ShortWeekdays _
Else _
DayArray = CCSDateConstants.Weekdays
While DayNumber < 6 AND UCase(DayArray(DayNumber)) <> DayName
DayNumber = DayNumber + 1
Wend
If DayNumber = 6 Then
If UCase(DayArray(6)) <> DayName Then _
Err.Raise 4000, "Common Functions. ParseDate function","Mask mismatch."
End If

Step 3. Copy the new DatePicker.ccl to ...\CodeChargeStudio\Components\CodeTemplates\Common\ folder (just in case back up the old file).

After completing these three steps, restart CCS and regenerate the project.
_________________
Regards,
David Hodgdon
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.