i'm passing start date as 7/02/2014
in dd/mm/yyyy
format, to add one month extra for current passed date, first i need to convert the passed var item to Date format and then i can manipulate on it.
if i try to get date like this, var newDate = new Date(startDate.val());
then i will be getting new date as 7 july 2014, i.e format of date i'm getting in response is mm/dd/yyyy
.
i need output of date()
to be in dd/mm/yyyy
format only. how to achieve this?
Is there any other function in jquery to do this?