Get the yesterday Date by using Javascript
var today = new Date(); // Get today date.
today.setDate(today.getDate() - 1); // Get yesterday date.
var date = today.getDate(); // Get the numerical date
var year = today.getYear(); // Get the year
var month = today.getMonth()+1; // Get the monthvar yesterdayDate = month+'/'+date+'/'+year;
Thursday, November 26, 2009
JavaScript - Get yesterday Date
Posted by Harpreet Singh at 3:59 PM Links to this post
Thursday, November 19, 2009
Using Hashtable in 2.0 framework
New warning in .net 2.0 framework. The cumbersome, and difficult to remember case-insensitive comparer declaration for the hashtable has been deprecated.
It tells me to use IEqualityComparer instead.
So, this syntax is obsolete:
New Hashtable(New CaseInsensitiveHashCodeProvider, NewCaseInsensitiveComparer)
So, the replacement seems to:
New Hashtable(StringComparer.OrdinalIgnoreCase)
Posted by Harpreet Singh at 1:08 PM Links to this post
Subscribe to:
Posts (Atom)

