4 Trying syntax highlighting
source | link

Check out my hebcal-js library, the perfect thing you need for this. Include it, and then you can use one of the following snippets:

This is only if you will never have dates in Elul (due to a bug):

  
var hebDate = new Hebcal.HDate(new Date(2014, 11 /* meaning 12 */, 8));
hebDate.setMonth(hebDate.getMonth() + 1);
var gregDate = hebDate.greg(); // a javascript Date object

This will work for any date:

  
var hebDate = new Hebcal.HDate(new Date(2014, 11 /* meaning 12 */, 8));
var gregDate = hebDate.getMonthObject().next().getDay(hebDate.getDate()).greg(); // a javascript Date object

Check out my hebcal-js library, the perfect thing you need for this. Include it, and then you can use one of the following snippets:

This is only if you will never have dates in Elul (due to a bug):

 
var hebDate = new Hebcal.HDate(new Date(2014, 11 /* meaning 12 */, 8));
hebDate.setMonth(hebDate.getMonth() + 1);
var gregDate = hebDate.greg(); // a javascript Date object

This will work for any date:

 
var hebDate = new Hebcal.HDate(new Date(2014, 11 /* meaning 12 */, 8));
var gregDate = hebDate.getMonthObject().next().getDay(hebDate.getDate()).greg(); // a javascript Date object

Check out my hebcal-js library, the perfect thing you need for this. Include it, and then you can use one of the following snippets:

This is only if you will never have dates in Elul (due to a bug):

 
var hebDate = new Hebcal.HDate(new Date(2014, 11 /* meaning 12 */, 8));
hebDate.setMonth(hebDate.getMonth() + 1);
var gregDate = hebDate.greg(); // a javascript Date object

This will work for any date:

 
var hebDate = new Hebcal.HDate(new Date(2014, 11 /* meaning 12 */, 8));
var gregDate = hebDate.getMonthObject().next().getDay(hebDate.getDate()).greg(); // a javascript Date object
3 added 272 characters in body
source | link

Check out my hebcal-js library, the perfect thing you need for this. Include it, and then do something like thisyou can use one of the following snippets:

This is only if you will never have dates in Elul (beware of errors, this is from my iPaddue to a bug):

var hebDate = new Hebcal.HDate(new Date(2014, 11 /* meaning 12 */, 8));
hebDate.setMonth(hebDate.getMonth() + 1);
var gregDate = hebDate.greg(); // a javascript Date object

This will work for any date:

var hebDate = new Hebcal.HDate(new Date(2014, 11 /* meaning 12 */, 8));
var gregDate = hebDate.getMonthObject().next().getDay(hebDate.getDate()).greg(); // a javascript Date object

Check out my hebcal-js library, the perfect thing you need for this. Include it, and then do something like this: (beware of errors, this is from my iPad)

var hebDate = new Hebcal.HDate(new Date(2014, 11 /* meaning 12 */, 8));
hebDate.setMonth(hebDate.getMonth() + 1);
var gregDate = hebDate.greg(); // a javascript Date object

Check out my hebcal-js library, the perfect thing you need for this. Include it, and then you can use one of the following snippets:

This is only if you will never have dates in Elul (due to a bug):

var hebDate = new Hebcal.HDate(new Date(2014, 11 /* meaning 12 */, 8));
hebDate.setMonth(hebDate.getMonth() + 1);
var gregDate = hebDate.greg(); // a javascript Date object

This will work for any date:

var hebDate = new Hebcal.HDate(new Date(2014, 11 /* meaning 12 */, 8));
var gregDate = hebDate.getMonthObject().next().getDay(hebDate.getDate()).greg(); // a javascript Date object
2 added 17 characters in body
source | link

Check out my hebcal-js library, the perfect thing you need for this. Include it, and then do something like this: (beware of errors, this is from my iPad)

var hebDate = new Hebcal.HDate(new Date(2014, 11 /* meaning 12 */, 8));
hebDate.setMonth(hebDate.getMonth() + 1);
var gregDate = hebDate.greg(); // a javascript Date object

Check out my hebcal-js library, the perfect thing you need for this. Include it, and then do something like this: (beware of errors, this is from my iPad)

var hebDate = new Hebcal.HDate(new Date(2014, 12, 8));
hebDate.setMonth(hebDate.getMonth() + 1);
var gregDate = hebDate.greg(); // a javascript Date object

Check out my hebcal-js library, the perfect thing you need for this. Include it, and then do something like this: (beware of errors, this is from my iPad)

var hebDate = new Hebcal.HDate(new Date(2014, 11 /* meaning 12 */, 8));
hebDate.setMonth(hebDate.getMonth() + 1);
var gregDate = hebDate.greg(); // a javascript Date object
1
source | link