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.
|
|
|
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?
|
|
|
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 |
|
|
bjack985
Posts: 9
|
Posted: 02/18/2005, 8:47 AM |
|
I'll be trying it all out this weekend. Thanks.
|
|
|