LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Date/Time String outputs wrong format...

Solved!
Go to solution

The following is a small sub-VI I am creating to output the day of the week, day of month, month, and year as a U16 array:

 

custom_days_month_year.PNG

 

The Get Date/Time String VI is supposed to output a date string of the format "DD/MM/YY" when the enum "short" is selected. Instead I get this:

 

custom_days_month_year_wrong.PNG

 

It seems the VI is "broken" or the documentation is incorrect. Has anyone else incountered this?

 

I am running LabView 2015 on Windows 7.

0 Kudos
Message 1 of 4
(4,153 Views)
Solution
Accepted by topic author swbpnole

Way too complicated.

Example_VI.png

aputman
Message 2 of 4
(4,139 Views)

@swbpnole wrote:

 

 

The Get Date/Time String VI is supposed to output a date string of the format "DD/MM/YY" when the enum "short" is selected. Instead I get this:

 

 


It's supposed to return a local specific date format. Check your regional settings in Control Panel.

 

aputmans solution is the right way to do this to avoid regional settings specific variations.

 

 

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 4
(4,127 Views)

Thank you ma'am/sir. I learn something everyday. LV experience is < 1 year...

0 Kudos
Message 4 of 4
(4,101 Views)