Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Default current date in a Datetime Picker object

2 posts in General Discussion Last posting was on 2006-07-18 21:23:28.0Z
SL Posted on 2006-07-17 22:14:40.0Z
Sender: 2432.44bc0b6a.1804289383@sybase.com
From: SL
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Default current date in a Datetime Picker object
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <44bc0bd0.2435.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 17 Jul 2006 15:14:40 -0700
X-Trace: forums-1-dub 1153174480 10.22.241.41 (17 Jul 2006 15:14:40 -0700)
X-Original-Trace: 17 Jul 2006 15:14:40 -0700, 10.22.241.41
Lines: 13
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:883
Article PK: 9128

Hi,

Is there a way to default current date in a Datetime Picker
object using Javascript?

Tried doing the following but didn't work:
a. dtObject.setDateTime(new Date());
b. dtObject.setDateTime = new Date();

Please advise.

Thanks,
SL


Peter Gibbons Posted on 2006-07-18 21:23:28.0Z
Reply-To: "Peter Gibbons" <pgibbons@initech.com>
From: "Peter Gibbons" <pgibbons@initech.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <44bc0bd0.2435.1681692777@sybase.com>
Subject: Re: Default current date in a Datetime Picker object
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1807
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807
NNTP-Posting-Host: surfwc054.sybase.com
X-Original-NNTP-Posting-Host: surfwc054.sybase.com
Message-ID: <44bd5150$1@forums-1-dub>
Date: 18 Jul 2006 14:23:28 -0700
X-Trace: forums-1-dub 1153257808 192.138.150.54 (18 Jul 2006 14:23:28 -0700)
X-Original-Trace: 18 Jul 2006 14:23:28 -0700, surfwc054.sybase.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:886
Article PK: 17827

Outside of the page onLoad event, use:

dtObject.setDateTime(new Date());
dtObject.refreshScreen();

or you can set the objects parameter tag setCurrent to true:
<param name="setCurrent" value="true"></param>

--
Peter

"Yeah. The coversheet. I know, I know."

<SL> wrote in message news:44bc0bd0.2435.1681692777@sybase.com...
> Hi,
>
> Is there a way to default current date in a Datetime Picker
> object using Javascript?
>
> Tried doing the following but didn't work:
> a. dtObject.setDateTime(new Date());
> b. dtObject.setDateTime = new Date();
>
> Please advise.
>
> Thanks,
> SL