June 18, 2008

Calculate the Last Day of the Month for Any Given Date

The following code calculates the last day of the month for any given date: Description: Calculates the last day of the month for any given date*/CREATE FUNCTION [dbo].[ufn_GetLastDayOfMonth]( @inpuDate SMALLDATETIME)RETURNS

How to Determine the Default Web Browser

Sometimes people assume that the default web browser is the program that is registered in the Windows registry to open files with an .html extension. However, it’s possible to set

Obtain Class Methods Using Reflection

In this example, you will obtain all methods, all declared methods, and one specific method for the java.lang.reflect.Method class: import java.lang.reflect.*;public class getMethodsWithReflection { public static void main(String[] args){ Class