Paste: date loops

Author: atriv
Mode: javascript
Date: Thu, 14 Jul 2011 14:04:19
Plain Text |
	var d = new Date();
	var newdate = new Date(d);
	var nd = Date();	
	
	while (nd.getDay() != 3)
	{
		newdate.setDate(newdate.getDate()-1);
		var nd = new Date(newdate);

	}

New Annotation

Summary:
Author:
Mode:
Body: