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
(3,436 Views)
Solution
Accepted by topic author swbpnole

Way too complicated.

Example_VI.png

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
Message 2 of 4
(3,422 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
0 Kudos
Message 3 of 4
(3,410 Views)

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

0 Kudos
Message 4 of 4
(3,384 Views)