Java 8 : Get week number since epoch time
<p>Given LocalDate I want to convert to week number since Epoch</p>

<p>One way to do that is:</p>

<pre><code>LocalDate date = datePicker.getValue(); // input from your date picker
Locale locale = Locale.US;
int weekOfYear = date.get(WeekFields.of(locale).weekOfWeekBasedYear());

And X = find weeks since Epoch to prevYear

And then result = X + weekOfYear
</code></pre>

<p>Although someway we can find out "week number since epoch", is there clean solution to find it using Java 8 ?</p>

<p>UPDATE:
Even above solution wont work as one week(always starting from Sunday) can span across two years</p>