Simple Date Format With TimeZone Issue
<p>Hi i have problem with simpledateformat+ timezone here is my code and i am expecting my output as 25/11/2011 but its returning as 24/11/2011. And my current time zone is Pacific and i am testing this on (25/11/2011).
Please help.</p>

<p>Hi Please find the complete program i am not just printing it i am comparing with current date and i was expecting the output as False but its going to True.</p>

<p>This is the typical scenario happening in production also servers are located in Pacific and users are from London. Please provide me the solutions for this problem.</p>

<pre><code>String  vacationStartDate = "25/11/2011";
SimpleDateFormat dateFormatter = new SimpleDateFormat("dd/MM/yyyy");
//America/Los_Angeles
TimeZone tz = TimeZone.getTimeZone("Europe/London");
dateFormatter.setLenient(false);
dateFormatter.setTimeZone(tz);      
Date start = dateFormatter.parse(vacationStartDate);                    
Date todayBeginning = new Date();

if ( start.before(todayBeginning)){
    System.out.println("True ");    
} else {
    System.out.println("False ");
}
</code></pre>
