- Joined
- Jan 13, 2007
- Messages
- 1,970
- Reaction score
- 27
- Gender
- Hidden
- Country
-
Re: The Pinoy Hang Out Thread v. 4
use the wrap code tags when posting code like this....
para hindi ganito lumabas...

re: parsing...have you checked the classes under java.text at java.util.regex ?
re: names
ako nga ilang pages ata ung kapangalan ko...
tapos meron pang p0rn star
at saka example sa accounting book!! WTF!!!!!!
re: codere: names
nag-search ako sa friendster ng pangalan ko... then to think that TWO other pinoys have the same name! wtfh!!!!
@all progs out there (esp yonie-sama)
eto na bago kong prob. pano ipaparse ang string to date? here's the lines of code:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection cn = DriverManager.getConnection("jdbcdbc
ataBase","","");
Statement st = cn.createStatement(
ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_UPDATABLE);
//commandline to get item from database
ResultSet rs = st.executeQuery("SELECT * FROM tblTrans WHERE R_Name ='"+tfFirst.getText()+"' AND R_Last = '"+tfLast.getText()+"'");
rs.last(); //gets last string
rs.beforeFirst(); //gets topmost value
while(rs.next()) //gets all values returned
{
vnum = rs.getString(1);
vtitle = rs.getString(4);
vquantity = rs.getString(6);
daterent = rs.getString(7);
returned = rs.getString(10);
fillunreturned(ctr); //ignore this; it's for filling up a table
ctr++;
}
System.out.println("vnum"+vnum);
System.out.println("returned"+returned);
System.out.println(""+D); //prints out the date
SimpleDateFormat sdf1 = new SimpleDateFormat("M dd yyyy", Locale.getDefault()); //date format
String dateToReturn = sdf1.format(returned); //problem area, should format the string into date
System.out.println(""+dateToReturn);
please help...
use the wrap code tags when posting code like this....
Code:
Hello World! :o :D

re: parsing...have you checked the classes under java.text at java.util.regex ?
re: names
ako nga ilang pages ata ung kapangalan ko...
tapos meron pang p0rn star
at saka example sa accounting book!! WTF!!!!!!
Last edited:




, anway
