Monday, September 29, 2008

JQuery Time

0 comments
jQuery is a lightweight open source JavaScript library developed
under the management of John Resig .
For those ASP.NET Developers who dont know jQuery, its seriously DO or DIE
For those who think jQuery is totally needless, its time to rethink.

Because
Scott Guthrie
(You ought to know the him!) yesterday announced that


Microsoft Microsoft will be shipping jQuery with Visual Studio going forward....
.................................................................................
Going forward we'll use jQuery as one of the libraries used to implement higher-level
controls in the ASP.NET AJAX Control Toolkit, as well as to implement new
Ajax server-side helper methods for ASP.NET MVC.
New features we add to ASP.NET AJAX (like the new client template support)
will be designed to integrate nicely with jQuery as well.


Heres the corresponding entry in the jQuery Team Blog

So its time to start taking jQuery a lot more seriously. [:)]

For starters:

1. The book "jQuery in Action".
Order from IndiaPlaza (Click Here)
2. A superb introductory article by Rick Strahl. (Click Here)
3. Another good article by Scott HanselMan.(Click Here)
4. Last but by no means the least Tutorials from the jQuery Team. (Click Here)

Read more...

DateTime Format Strings

0 comments
Been googling about common DateTime format strings.
Surprisingly, very few relevant ones came up.
So decided to make a post of the formats I got for future reference



DateTime.Now; //5/16/2006 1:05:13 AM
DateTime.Now.ToString(); //5/16/2006 1:05:13 AM
DateTime.Now.ToShortTimeString() //11:40 AM
DateTime.Now.ToShortDateString() //5/16/2006
DateTime.Now.ToLongTimeString() //11:40:13 AM
DateTime.Now.ToLongDateString() //Tuesday, May 16, 2006



Examples of DateTime for Given Formats



DateTime.Now.ToString("dddd, MMMM dd yyyy") // Tuesday, May 16 2006
DateTime.Now.ToString("ddd, MMM d "'"yy") // Tue, May 16 '06
DateTime.Now.ToString("dddd, MMMM dd") // Tuesday, May 16
DateTime.Now.ToString("M/yy") // 5/06
DateTime.Now.ToString("dd-MM-yy") // 16-05-06



Courtesy : An article from DOTNET Spider
Read more...