Welcome Guest Search | Active Topics | Sign In | Register

Get Different Format of DateTime in DatePicker on Client Side Options
Menon
Posted: Thursday, January 17, 2008 7:42:29 AM
Rank: Advanced Member
Groups: Member

Joined: 8/9/2007
Posts: 59
Hi Friends,
I am working on c#.net
I am trying to get the value of DatePicker on Client by Javascript
var checkindate = eo_GetObject("CheckInDatePicker").getSelectedDate();

But the format of Date is WED Nov 28 2007 00:00:00 GMT 020 (....)

Now i am passing this value from URL and then on serverside trying to convert this date into normal format. But i am not able to convert it throws me error Invalid Format of DateTime.
I want it in format 28/11/2007 or 2007-11-28 anything will do...

Any suggestion or Help would be greatly appreciated.

Thanks

Menon
eo_support
Posted: Thursday, January 17, 2008 9:13:12 AM
Rank: Administration
Groups: Administration

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

getSelectedDate returns a JavaScript Date object. So you will need to format it by yourself if you wish to pass it along with an Url.

Thanks
Menon
Posted: Thursday, January 17, 2008 10:10:19 AM
Rank: Advanced Member
Groups: Member

Joined: 8/9/2007
Posts: 59
Hi There,
If you could please show me an example how you convert it?

Thanks
Menon
eo_support
Posted: Thursday, January 17, 2008 11:56:24 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,090
Hi Menon,

That would be general JavaScript programming and unfortunately that's out of the scope of our tech support. Our support is only limited to our product.

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.