Category: JQuery

  • Get last and current quarter in javascript

    [js] function getQuarter(id) { var d = new Date(); var quarter = Math.floor((d.getMonth() / 3)); switch (id) { case “Current”: var firstDate = new Date(d.getFullYear(), quarter * 3, 1); var endDate = new Date(firstDate.getFullYear(), firstDate.getMonth() + 3, 0); break; case “Previous”: var firstDate = new Date(d.getFullYear(), quarter * 3 – 3, 1); var endDate =…

  • JSON date to Date object – javascript

    While working with web services or API with json return, we will get date values in different format, we can’t use this as is where required. To convert to date object we need to extract integer value and then pass to Date object, below example shows how to get valid date object. [javascript] var json…

  • .NET Framework overview and version history

    The .NET framework is a Microsoft robust technology that support to build and run next generation of applications on desktop and mobiles devices. This consist of the common language runtime (CLR) and framework class library. The CLR is the foundation of the .NET framework, it provides core services like memory management, process management, threads management,…

  • How to crop images using Jquery

    Recently I came across a business requirement where users can upload photo’s and resize them best to fit in the UI. I done done goggling to and found a jquery plugin which can integrate in all web applications easily. This plugin named in jCrop.