02-26-2014 02:24 PM
conversion of string indicators containing 12Hour -time format into 24hour-time format
ie 1:35:00 pm(12hour time-format) to 13:35:00(24-hour format)
02-26-2014 02:32 PM
I'm not sure what your question is but if you want 24 hour display just open the indicator properties and change it on the Display Format tab.
P.S. Please avoid .docx format for posting. They can contain viruses and many won't open them. Just post a picture, or better, your VI.
02-26-2014 02:47 PM
First off DO NOT paste a picture into a Word document then attach the document. Use the Insert Image function the forum has.
Also I am not sure exactly what you are asking. But here is how to format a time stamp into 12 and 24 hour time strings
02-26-2014 03:08 PM
I highly recommend giving the LabVIEW help a good read.
Format Codes for the Time Format String
02-26-2014 10:08 PM
actually i have taken a numeric control of time- date format in which display format of time is 24-hour type but the requirement is that the numeric control should be converted into string type in which display format is 24-hour type.
how to achieve this?
02-26-2014 11:41 PM
Have you even bothered to read the thread that you created?
02-27-2014 08:39 AM
@priya2207 wrote:
actually i have taken a numeric control of time- date format in which display format of time is 24-hour type but the requirement is that the numeric control should be converted into string type in which display format is 24-hour type.
how to achieve this?
The two posts from RTSLVU and crossrulz right above have already specified the answer. Use the Format Date/Time String VI. Learn how to set the format string to get the desired text output by looking at the help or reading the links above.
02-27-2014 09:24 AM
Read the two attached docuents from LabView Help
02-27-2014 11:45 AM
@priya2207 wrote:
actually i have taken a numeric control of time- date format in which display format of time is 24-hour type but the requirement is that the numeric control should be converted into string type in which display format is 24-hour type.
You have two options: Format Date/Time String or Format String. I prefer Format String since I am usually combining other things. For the format string, follow formats given in the LabVIEW Help (follow the links I already gave you).