- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
var times, source_date,
date = "20.11.2014";
if (date) {
times = date.split('.');
source_date = new Date();
source_date.setFullYear(parseInt(times[2]));
source_date.setMonth(parseInt(times[1]) - 1);
source_date.setDate(parseInt(times[0]));
}
return source_date ;