LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Check date within limit

Solved!
Go to solution

Hello 2 all,

 

Plz Help me i am new 2 Labview

 

i am using labview 8.2.1

 

i want 2 check the given date within the From and To date for Report generation.

plz help me if any one knows, i need it urgently.

 

0 Kudos
Message 1 of 12
(4,675 Views)

Use inrange and coerse from comparison pallette.  This will be polymorphic to the time date type. 

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 12
(4,671 Views)

sir i want From And To date are variable

 

0 Kudos
Message 3 of 12
(4,665 Views)

Mukesh Krish wrote:

sir i want From And To date are variable

 


Yes, how does that change the answer that Paul gave you?  Use wires from controls or formulas into the Max and Min inputs of the In Range and Coerce function instead of constants!

0 Kudos
Message 4 of 12
(4,654 Views)
Solution
Accepted by topic author Mukesh Krish

sir plz find the attachment

 

inrange function only checking day its not consider month and year plz give me your suggestion and solution plzzzzzzz

0 Kudos
Message 5 of 12
(4,648 Views)

sir plz find the attachment

 

inrange function only checking day its not consider month and year plz give me your suggestion and solution plzzzzzzz


 
   
0 Kudos
Message 6 of 12
(4,642 Views)
I imagine that when you pass a string into In Range and Coerce it does an alphabetical check.  It doesn't know you formatted the string as a date.  It just sees a string.  Use time stamps.  An example is attached.  It's LV 8.5
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 7 of 12
(4,629 Views)

How come you marked your reply as solved when it is not a solution, but another question?

 

The problem is that you don't have dates.  You have strings.  So if you convert those strings to dates, then you will be able to use th In Range and Coerce function.

 

See attached.

0 Kudos
Message 8 of 12
(4,626 Views)

You dont want to use string you should convert to date time.  This can be done using the scan from string and <T> time format.  Without seeing your time date strings I cant give you the exact conversion.  Once in a time date format (NOT STRING) then use inRange

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 9 of 12
(4,624 Views)
0 Kudos
Message 10 of 12
(4,603 Views)