Time on the client machine
Hi,
Thanks for reading my post in advance.
I am working on this code to read the time on the client machine which could be locations outside the USA also.
Is there a way I can code so that I can get what the time running on the client machine.
I did some research on the internet and a found a code which gives some ideas about the date format on the client machine.
Is there a way we can modify this code so we can see the time client running on the client's machine.
<%
// get client locale
java.util.Locale locale = request.getLocale();
// get Dateformat for client's locale
java.text.DateFormat dateFormat =
java.text.DateFormat.getDateTimeInstance(
java.text.DateFormat.LONG,
java.text.DateFormat.LONG, locale);
%>
<%=dateFormat.format( new java.util.Date() ) %>

