Allocates the difference between two Dates.
Smart code
Syntax
GetDateDifference(Variable,From Date,To Date Control Name,Output Format)
Parameters
- Variable(Required) – Name of the variable to store the length of the given string.
- From Date (Required) – From Date for the difference.
- To Date (Required) – To Date for the difference.
- Control Name (Required) – Select the control name to be displayed.
- Output Name (Required) – Select the specified format to be displayed by Days, Month, and Year.
Direct Code
Syntax
try {
var Variable_Name=await Orefuncs.GetDateDiff(“<<From_Date>>”, “<<To_Date>>”, “<<Control_Name>>”, this.state, “<<OutputFormat>>”)
}
catch(ex) {
OreAlert.alert(ex.message);
}
this.setState({ spinner: false });