Hi,
every one
I have a web-application to be deployed on
tomcat in Canada,
My web application uses real-time monitoring of database, that monitoring should be strictly according to Indian date and time.
I have used following code.
how to modify/add something to it so that it work fine as per my requirements.
...................
.....................
..............
// Create an instance of SimpleDateFormat used for formatting
// the
string representation of date (day/month/year)
DateFormat df = new SimpleDateFormat("dd/MM/yyyy");
// Get the date today using Calendar object.
Date today = Calendar.getInstance().getTime();
// Using DateFormat format method we can create a string
// representation of a date with the defined format.
String todaydate = df.format(today);
// Print what date is today!
System.out.println("Report Date: " + todaydate);
//ask database if there any alert for today
try{
exist=AlertDB.upcomingalertfortodayExists(todaydate);
//for
testing
System.out.println("Alert for today exist ="+exist);
}finally{
...............
.....................
.....................