CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 JSP =Date()

Print topic Send  topic

Author Message
Jeff
Posted: 08/15/2002, 2:01 PM

anyone know how to get the auto date function in CC JSP? =Date() isn't working. I also cannot find anything on the message board for this function.
Patrick
Posted: 08/15/2002, 3:50 PM

Hi Jeff,
I suppose you are trying to insert "=Date()" in the default value of the field! To have todays date inserted in the field by default, you have to go to Form proprieties -> Events -> Before show insert -> and type "fldDate = new java.text.SimpleDateFormat("dd.MM.yyyy").format(new java.util.Date());" if your field name is Date.
Hope this helps!

pslama@axelogis.com
Jeff
Posted: 08/15/2002, 11:37 PM

Once I saw your comment I felt pretty stupid and looked at the CC classifieds. On the AddMyRecord template, Form Properties, under events, it clearly has this data avail. Hopefully this will assist. anyone else that couldnt find it on their own.

   


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.