Skip to main content

Posts

Calculate No of Years,Months and Days Between two Dates by Javascript

Calculate No of Years,Months and Days Between two Dates by Javascript <script language="JavaScript"><!-- //function getAge(dateString,dateType) function CalbwDates() { /*    function getAge    parameters: dateString dateType    returns: boolean    dateString is a date passed as a string in the following    formats: Types :    type 1 : 19970529    type 2 : 970529    type 3 : 29/05/1997    type 4 : 29/05/97    dateType is a numeric integer from 1 to 4, representing    the type of dateString passed, as defined above.    Returns string containing the age in years, months and days    in the format yyy years mm months dd days.    Returns empty string if dateType is not one of the expected    values. */ //var FirstDate=document.getElementById('ctl00_ContentPlaceHolder1_TextBox1').value; //var SecondDate=...

convert amount to rupees in words format in c#

convert amount to rupees in words format in c# public string words ( int numbers )         {             int number = numbers ;             if ( number == 0 ) return "Zero" ;             if ( number == - 2147483648 ) return "Minus Two Hundred and Fourteen Crore Seventy Four Lakh Eighty Three Thousand Six Hundred and Forty Eight" ;             int [] num = new int [ 4 ];             int first = 0 ;             int u , h , t ;             System . Text . StringBuilder sb = new System . Text . StringBuilder ();             if ( number < 0 )             {                 sb . Append ( "Minus " );     ...