Home > Net >  According to Lay the UI for range query date range
According to Lay the UI for range query date range

Time:11-21

want to ask, is to Lay the UI timing control, how to undertake according to obtain the time range, time range query



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 partitioned

CodePudding user response:

The split segmentation

CodePudding 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 you
I am so integral:
Var date=value;
Var GetDate=date. The substring (0, 10);
Var EndDate=date. The substring (12, 23).
  • Related