LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

divide timestamp into array

Hello,

 

I have simple problem but I cant find decent solution

I have time start lets say 2014.05.07 and time end 2014.07.22

 

I want 2d array output:

2014.05.07,  2014.05.31

2014.06.01,  2014.6.30

2014.07.01,  2014.7.22

 

Thanks for any advices

0 Kudos
Message 1 of 3
(2,344 Views)

Hi pawhan,

 

what's thedefinition of the 1st column? Start of month?

What's the definition of the 2nd column? End of month?

 

Pseudocode:

date := start_date
while date < end_date
   BuildArray(date, MIN(EndOfMonth(date); end_date) )
   date := EndOfMonth(date) + 1
wend

 See how far you get. Post what you have programmed so far…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,334 Views)

This seems to be working now

 

test.png

 

Thanks for help

 

0 Kudos
Message 3 of 3
(2,315 Views)