02-20-2015 09:46 AM
I need to change a Julian Date code (string format) to a Normal Date code (string format). This is not in real time so using Get Date doesn't seem to be the solution (unless someone else has a way to do this). I am reading a scanned in date in the format:
YYDDD
and would like to change it to:
YYMMDD
Is there a quick function or easy way to do this?
Thanks!!
Solved! Go to Solution.
02-20-2015 10:41 AM - edited 02-20-2015 10:42 AM
Scan from string followed by a format into string using the right time codes for the format strings.
02-20-2015 11:18 AM
I was drawing up code for this question and came up with the same solution expecting for it to work but I get a totally different answer.
02-20-2015 11:27 AM
02-20-2015 11:32 AM
I remember this "feature", I think if you try '0015123' in LV12 it works.
02-20-2015 11:38 AM
@Darin.K wrote:
I remember this "feature", I think if you try '0015123' in LV12 it works.
Sure enough. That's a "useful" "feature".
02-20-2015 01:02 PM
That brings back memories. I had come across a bug in LabVIEW 2012 that was related to time stamp codes and 2 and 4 digit years.
See http://forums.ni.com/t5/LabVIEW/Scan-from-String-to-get-Timestamp-Problem-in-LV-2012/m-p/2774248#M81... where it talks about CAR300375
02-23-2015 12:25 PM
Thanks everyone! All answers were helpful, I am using LabVIEW 2010 so I needed the additional "00" in the front as well.