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 -> IDE/GUI

 customize datepicker.js for string output

Print topic Send  topic

Author Message
bjack985

Posts: 9
Posted: 02/03/2005, 11:04 PM

I can get the date picker to work normally. It will put a date into a date/time field when clicked.
However, I'd like for it to put the date into a text field as a string with a different format.
I'd like it to use a 2005-01-01 type format. I've edited the datepicker.js file (copied it before I went messing with it.) but can't seem to get it to format the date accordingly.
I'm doing this to try to get around a date searching error that I've been getting using perl to search for dates in an Access database. I've searched the web but can't find much information on a fix for perl. Lot's of stuff on ASP.
View profile  Send private message
Benjamin Krajmalnik
Posted: 02/15/2005, 9:41 AM

Look at the HTML file and the call to the date picker. I believe that there
is a place there to set the formatting.

For example:

//Date Picker Object Definitions @1-0EB5B463

var tblCustomerInventorySearch_DatePicker_s_DatePurchased = new Object();
tblCustomerInventorySearch_DatePicker_s_DatePurchased.format =
"mm/dd/yyyy";
tblCustomerInventorySearch_DatePicker_s_DatePurchased.style =
"Themes/Aqua/Style.css";
tblCustomerInventorySearch_DatePicker_s_DatePurchased.relativePathPart = "";


Just make sure that you are using a valid format.

bjack985

Posts: 9
Posted: 02/15/2005, 4:50 PM

Thanks. I'll try it.
Will this allow the datepicker to populate a text field?
View profile  Send private message
Benjamin Krajmalnik
Posted: 02/17/2005, 2:02 PM

The entry field is a text field.

Nicole

Posts: 586
Posted: 02/18/2005, 3:08 AM

Hello,
Just a note: instead of editing JS code you can select a desired date format for textbox Format property

_________________
Regards,
Nicole
View profile  Send private message
bjack985

Posts: 9
Posted: 02/18/2005, 8:47 AM

I'll be trying it all out this weekend. Thanks.
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.