CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 date format in link parameters

Print topic Send  topic

Author Message
chrisb

Posts: 7
Posted: 02/02/2006, 9:51 PM

I have a case where the leading zero of a date used as a link parameter is being dropped. I'm using CCS3 latest update, ASP, Access, WinXP.

Link parameter is:
Source type: Expression
Parameter source: Date()
Parameter name: s_report_date

The link which results is:
report_name.asp?s_report_date=3/02/2006

The leading zero of the date is dropped. If I display date() in a label, 03/02/2006 is displayed. Full date is Feb 3rd 2006.

Anyway, the result of this is the following message when linked page is displayed:

Script error detected at line 6502.
Source line: ResultDateArray(DAY_POS) = CInt(DatePartStr)
Description: Type mismatch: 'CInt'

Other settings I have are:
Date display format in Project Locales settings: dd/mm/yyyy
Date formats in Data Source where clause: dd/mm/yyyy
Date format in Access: Short Date (dd/mm/yyyy)

If I change the computer date to something like 17/02/2006 all is fine. I've also tried using formatdatetime function with no change. Just seems to be dropping the leading zero in the link. Any thoughts please?

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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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