The above is to Lay the UI date range selection control
HTML file
Lay the UI date range JS file
in this form: $(" # test6 "). Val ()
How to get to select a date range was introduced into the background
The background code
use this form for time range query
Online and so on, the more urgent, thank you
CodePudding user response:
Access to the time range for range queries can be partitionedCodePudding user response:
The split segmentationCodePudding user response:
JArray ja=(JArray) JsonConvert. DeserializeObject (SelectDate);String loaddate=ja [0] [r]. "loaddate" ToString ();
String checkdate=ja [0] [r]. "checkdate" ToString ();
If (string. IsNullOrEmpty (loaddate)==false)
{
Begtime=loaddate. Split (' - ') [0]. ToString () + "-" + loaddate. Split (' - ') [1]. The ToString () + "-" + loaddate. Split (' - ') [2]. The ToString ();
Endtime=loaddate. Split (' - ') [3]. The ToString () + "-" + loaddate. Split (' - ') [4]. The ToString () + "-" + loaddate. Split (' - ') [5]. The ToString ();
}
CodePudding user response:
Has been solved, thank youI am so integral:
Var date=value;
Var GetDate=date. The substring (0, 10);
Var EndDate=date. The substring (12, 23).