C# Class Cats.Helpers.DateHelpers

Show file Open project: edgecomputing/cats

Public Methods

Method Description
CTSPreferedDateLabel ( this label ) : string
FormatDateFromString ( this helper, string dateAsString ) : string
GetPreferedRation ( this amount ) : decimal
GetPreferedRation1 ( this amount ) : float
ToCTSPreferedDateFormat ( this date, string lang ) : string
ToMetricTone ( this amountInQuintal ) : decimal
ToPreferedWeightMeasurment ( this quantity, string weightMeasurment ) : Decimal
ToPreferedWeightUnit ( this amount, string unit = "MT" ) : decimal
ToPreferedWeightUnitForInsert ( this amount, string unit = "MT" ) : decimal
ToQuintal ( this amountInMT ) : decimal

Method Details

CTSPreferedDateLabel() public static method

public static CTSPreferedDateLabel ( this label ) : string
label this
return string

FormatDateFromString() public static method

public static FormatDateFromString ( this helper, string dateAsString ) : string
helper this
dateAsString string
return string

GetPreferedRation() public static method

public static GetPreferedRation ( this amount ) : decimal
amount this
return decimal

GetPreferedRation1() public static method

public static GetPreferedRation1 ( this amount ) : float
amount this
return float

ToCTSPreferedDateFormat() public static method

public static ToCTSPreferedDateFormat ( this date, string lang ) : string
date this
lang string
return string

ToMetricTone() public static method

public static ToMetricTone ( this amountInQuintal ) : decimal
amountInQuintal this
return decimal

ToPreferedWeightMeasurment() public static method

public static ToPreferedWeightMeasurment ( this quantity, string weightMeasurment ) : Decimal
quantity this
weightMeasurment string
return Decimal

ToPreferedWeightUnit() public static method

public static ToPreferedWeightUnit ( this amount, string unit = "MT" ) : decimal
amount this
unit string
return decimal

ToPreferedWeightUnitForInsert() public static method

public static ToPreferedWeightUnitForInsert ( this amount, string unit = "MT" ) : decimal
amount this
unit string
return decimal

ToQuintal() public static method

public static ToQuintal ( this amountInMT ) : decimal
amountInMT this
return decimal