> Pls someone provide me the code to return current
> Netherland date and time (both in integer format)
Better yet, have a look at the following so you don't have to depend on others to keep giving you code:
[url=http://www.javaworld.com/jw-12-2000/jw-1229-dates.html]Calculating Java dates: Take the time to learn how to create and use dates[/url]
[url=http://java.sun.com/docs/books/tutorial/i18n/format/simpleDateFormat.html]The Java?Tutorial - Customizing Formats[/url]
[url=http://java.sun.com/docs/books/tutorial/i18n/locale/index.html]The Java?Tutorial - Lesson: Setting the Locale[/url]
[url=http://www.javaalmanac.com/egs/java.text/FormatDate.html]Formatting a Date Using a Custom Format[/url]
[url=http://www.javaalmanac.com/egs/java.text/ParseDate.html]Parsing a Date Using a Custom Format[/url]
~
> Jos.executeQuery("What time is it?");
> Although this method is currently broken, in that it
> only returns "Half past Grolsch."
Then maybe you could do this instead:
prometheuzz.executeQuery("What time is it?");
> > Jos.executeQuery("What time is it?");
>
FiveOClockSomewhereException
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)(Compiled Code)
at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source)(Compiled Code)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)(Compiled Code)
at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unknown Source)(Compiled Code)
at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source)(Compiled Code)
at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source)(Compiled Code)
at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown Source)(Compiled Code)
at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)(Compiled Code)
at com.microsoft.jdbc.base.BaseStatement.executeUpdateInternal(Unknown Source)(Compiled Code)
at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source)
This error is sporadic, occasionally accompanied by a "GrolschNotFoundException".
> > > > Jos.executeQuery("What time is it?");
> >
>
> > FiveOClockSomewhereException
> at
> t
> com.microsoft.jdbc.base.BaseExceptions.createException
> (Unknown Source)
> at
> t
> com.microsoft.jdbc.base.BaseExceptions.getException(Un
> known Source)
> at
> t
> com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErr
> orToken(Unknown Source)
> at
> t
> com.microsoft.jdbc.sqlserver.tds.TDSRequest.processRep
> lyToken(Unknown Source)(Compiled Code)
> at
> t
> com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.process
> ReplyToken(Unknown Source)(Compiled Code)
> at
> t
> com.microsoft.jdbc.sqlserver.tds.TDSRequest.processRep
> ly(Unknown Source)(Compiled Code)
> at
> t
> com.microsoft.jdbc.sqlserver.SQLServerImplStatement.ge
> tNextResultType(Unknown Source)(Compiled Code)
> at
> t
> com.microsoft.jdbc.base.BaseStatement.commonTransition
> ToState(Unknown Source)(Compiled Code)
> at
> t
> com.microsoft.jdbc.base.BaseStatement.postImplExecute(
> Unknown Source)(Compiled Code)
> at
> t
> com.microsoft.jdbc.base.BasePreparedStatement.postImpl
> Execute(Unknown Source)(Compiled Code)
> at
> t
> com.microsoft.jdbc.base.BaseStatement.commonExecute(Un
> known Source)(Compiled Code)
> at
> t
> com.microsoft.jdbc.base.BaseStatement.executeUpdateInt
> ernal(Unknown Source)(Compiled Code)
> at
> t
> com.microsoft.jdbc.base.BasePreparedStatement.executeQ
> uery(Unknown Source)
>
>
> This error is sporadic, occasionally accompanied by a
> "GrolschNotFoundException".
Obviously your watch is broken or your fridge is empty; what a mess ...
kind regards,
Jos ;-)