Horje
convert number of days into months c# Code Example
convert number of days into months c#
//This function is meant for general conversions only.  
//Converting the months between two known date ranges may cause odd results
private int ConvertDaysToMonths(double days)
{
  // Divide by this constant to convert days to months.
  const double daysToMonths = 30.4368499;

  return Convert.ToInt32(Math.Floor(days / daysToMonths));
}




Csharp

Related
Wpf Arrow Button Code Example Wpf Arrow Button Code Example
streamwriter c# Code Example streamwriter c# Code Example
c# random number between 0 and 1 Code Example c# random number between 0 and 1 Code Example
int to bool c# Code Example int to bool c# Code Example
initialization synonym Code Example initialization synonym Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11