Welcome Guest Search | Active Topics | Sign In | Register

Client side manipulation of DatePicker.SelectedDate Options
Brian300
Posted: Saturday, August 28, 2010 4:46:10 PM
Rank: Member
Groups: Member

Joined: 3/13/2010
Posts: 13
Hola,

Trying to do some client side manipulation of the selecteddate value of a datepicker here.

Looks like I should be able to use:

Code: JavaScript
var begDate = dpBeg.getSelectedDate;
var endDate = begDate.add('h',6);
dpEnd.setSelectedDate = endDate;


(Note that I'm using the javascripttoolbox.com kit for date manipulation)

Instead of getting a date object back from getSelectedDate, it looks like I'm getting a function (!?). Here is what is returned:

function (){if(this.aaov)return this.aaow();else{this.aaox();var a=this.aani.aank();if(!a&&this.aaoy()){var b=this.aaoz();if(b.aapa||b.aapb||b.aapc){a=EO825.f.aph(1,0,1);a.setHours(b.aapa,b.aapb,b.aapc);}}return a;}}

Am I using this thing wrong?

Using VS2010, .net 4, EO2010.

Thanks!
eo_support
Posted: Saturday, August 28, 2010 5:40:34 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Yes. Both getSelectedDate and setSelectedDate are functions. So you would do something like this:

var begDate = dpBeg.getSelectedDate();

dpEnd.setSelectedDate(endDate);

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.