on 03-11-2008 5:27 AM
Hi all
I need to send as input to an RFC the highdate value.
ie. 9999-12-31
I cannot change the RFC to default the input.
Can anyone tell me how to set a java.sql.date to the value 9999-12-31?
Thanks in advance
Anton Kruse
Hi,
you need to format the date before calling the RFC:
Calendar c = Calendar.getInstance();
c.set(9999, 11, 31);
Date d = new Date(c.getTimeInMillis());
Format formatter = new SimpleDateFormat("yyyy-MM-dd");
String s = formatter.format(d); //s = "9999-12-31"
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
managed to get it working by using the following code:
java.sql.Date sqlDateAugust = java.sql.Date.valueOf( "9999-12-31" );
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.