CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Getting Time From Datepicker

Print topic Send  topic

Author Message
ab5ni


Posts: 177
Posted: 06/19/2012, 8:04 AM

Years ago, I posted the same message, wondering what you had to do to get the current time from Datepicker. Well, here I am again asking the same question :-D, and I was just wondering if anything has changed since I asked this question back in the day? All I know is that the time is being returned as 0:00 no matter what I try to do, guys. Any new code out there or new techniques?

Regards,

_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!


View profile  Send private message
mor

Posts: 119
Posted: 06/20/2012, 6:39 AM

You can:
1. use two separate fields for date and time.
2. customize standard popup datepicker (add separate field for time)
3. use existent solutions. For example based on JQuery: http://trentrichardson.com/examples/timepicker/
4. submit feature request to YesSoftware (add ability to anable time picker at current components).
5. ... :)

You always can configure date format for DatePicker in HTML and add any time values to selected date. For example for InlineDatePicker:
replace string:
generateDatePicker(sender.id, "ShortDate","None");
with:
var currentTime = new Date()  
generateDatePicker(sender.id, "yyyy-mm-dd "+currentTime.getHours()+":"+currentTime.getMinutes() ,"None"); 

_________________
Mor ve Ötesi
View profile  Send private message
ab5ni


Posts: 177
Posted: 06/25/2012, 10:58 AM

Howdy, Mor, and thank you very much for the response,

Well, I tried solution #1, but that didn't seem to work. I removed the commented-out fields for the addition of time, but that didn't seem to solve anything. (Shrug.) One would think that adding the time calls would actually work, but I have yet to analyze why it's not working. Will take a bit of time to go over the code and get a good grip on what's actually going on, and I suspect that's the main reason why others have decided to use other solutions. Personally, I'm thinking about just saying "to hell with it" and spending a day or two getting the CCS DatePicker to display the time and post the code to the forums. The HTML solution you added is great, and I think I'll give that a shot first and see what gives.

Thanks again, and Best Regards,
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!


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.