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.

Passing a Date argument in java bean method

4 posts in General Discussion (old) Last posting was on 2000-03-03 20:06:30.0Z
Dennis Connolly Posted on 2000-03-03 18:32:31.0Z
Newsgroups: sybase.public.easerver
From: "Dennis Connolly" <decon@gte.net>
Subject: Passing a Date argument in java bean method
Date: Fri, 3 Mar 2000 13:32:31 -0500
Lines: 8
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 1Cust87.tnt2.new-port-richey.fl.da.uu.net 63.24.243.87
Message-ID: <347_R6b3I#Th$GA.74@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27197
Article PK: 158114

Hi All, can anyone give me a quick example of passing a date argument in a
method. I have tried MJD.Date and the MJD.DateHolder and have having
problems. All I want to do is pass a java.sql.Date from a java application
to a jag java bean method and use the date as a java.sql Date within the
bean. It is driving me nuts. There must be something simple I am missing.
Thanks Den


Dave Wolf [Sybase] Posted on 2000-03-03 19:05:45.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Passing a Date argument in java bean method
Date: Fri, 3 Mar 2000 14:05:45 -0500
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: dwolf-nt.sybase.com 157.133.41.148
Message-ID: <347_DbAlFQUh$GA.285@forums.sybase.com>
References: <347_R6b3I#Th$GA.74@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27195
Article PK: 158113

java.sql.Date today = new java.sql.Date(2000,3,3);
MJD.Date corbaDate = com.sybase.CORBA.jdbc11.IDL.getDate(today);

Dave Wolf
Internet Applications Division

"Dennis Connolly" <decon@gte.net> wrote in message
news:R6b3I#Th$GA.74@forums.sybase.com...
> Hi All, can anyone give me a quick example of passing a date argument in a
> method. I have tried MJD.Date and the MJD.DateHolder and have having
> problems. All I want to do is pass a java.sql.Date from a java
application
> to a jag java bean method and use the date as a java.sql Date within the
> bean. It is driving me nuts. There must be something simple I am
missing.
> Thanks Den
>
>


Dennis Connolly Posted on 2000-03-03 19:49:13.0Z
Newsgroups: sybase.public.easerver
From: "Dennis Connolly" <decon@gte.net>
Subject: Re: Passing a Date argument in java bean method
Date: Fri, 3 Mar 2000 14:49:13 -0500
Lines: 29
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 1Cust18.tnt4.new-port-richey.fl.da.uu.net 63.11.39.18
Message-ID: <347_nfsJApUh$GA.251@forums.sybase.com>
References: <347_R6b3I#Th$GA.74@forums.sybase.com> <347_DbAlFQUh$GA.285@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27191
Article PK: 158109

I finally get it, I think. You need to define the method parameter using
java.sql.Date, but when you execute the method you need to pass a MJD.Date.
Thanks for the help. Den

Dave Wolf [Sybase] wrote in message ...
>java.sql.Date today = new java.sql.Date(2000,3,3);
>MJD.Date corbaDate = com.sybase.CORBA.jdbc11.IDL.getDate(today);
>
>Dave Wolf
>Internet Applications Division
>
>
>"Dennis Connolly" <decon@gte.net> wrote in message
>news:R6b3I#Th$GA.74@forums.sybase.com...
>> Hi All, can anyone give me a quick example of passing a date argument in
a
>> method. I have tried MJD.Date and the MJD.DateHolder and have having
>> problems. All I want to do is pass a java.sql.Date from a java
>application
>> to a jag java bean method and use the date as a java.sql Date within the
>> bean. It is driving me nuts. There must be something simple I am
>missing.
>> Thanks Den
>>
>>
>
>


Dave Wolf [Sybase] Posted on 2000-03-03 20:06:30.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Passing a Date argument in java bean method
Date: Fri, 3 Mar 2000 15:06:30 -0500
Lines: 41
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: dwolf-nt.sybase.com 157.133.41.148
Message-ID: <347_IZb#AyUh$GA.251@forums.sybase.com>
References: <347_R6b3I#Th$GA.74@forums.sybase.com> <347_DbAlFQUh$GA.285@forums.sybase.com> <347_nfsJApUh$GA.251@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27190
Article PK: 158105

Right.

Dave Wolf
Internet Applications Division

"Dennis Connolly" <decon@gte.net> wrote in message
news:nfsJApUh$GA.251@forums.sybase.com...
> I finally get it, I think. You need to define the method parameter using
> java.sql.Date, but when you execute the method you need to pass a
MJD.Date.
> Thanks for the help. Den
>
> Dave Wolf [Sybase] wrote in message ...
> >java.sql.Date today = new java.sql.Date(2000,3,3);
> >MJD.Date corbaDate = com.sybase.CORBA.jdbc11.IDL.getDate(today);
> >
> >Dave Wolf
> >Internet Applications Division
> >
> >
> >"Dennis Connolly" <decon@gte.net> wrote in message
> >news:R6b3I#Th$GA.74@forums.sybase.com...
> >> Hi All, can anyone give me a quick example of passing a date argument
in
> a
> >> method. I have tried MJD.Date and the MJD.DateHolder and have having
> >> problems. All I want to do is pass a java.sql.Date from a java
> >application
> >> to a jag java bean method and use the date as a java.sql Date within
the
> >> bean. It is driving me nuts. There must be something simple I am
> >missing.
> >> Thanks Den
> >>
> >>
> >
> >
>
>