Parse Hrnet Date

Simple snippet for Custom Scripts: convert form HRNET date string into JavaScript format


 * Parce from string representind date in format "dd/mm/yyyy" into JavaScript Date format


function parseDate(strDate){

	var array = strDate.split("/");

	return new Date(array[2], array[1]-1, array[0], 0,0,0);


This entry was posted in Uncategorized and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *