octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get default/local Date/Time patterns?


From: Denis S.
Subject: Re: How to get default/local Date/Time patterns?
Date: Thu, 7 Apr 2016 00:10:52 -0700 (PDT)

Thank you, Mike, for quick response. 

My function works with dates from Excel file. 
It's estimated, that this function will be used on PCs with different local
settings. 

When you open this Excel file on PC1, you see dates like yyyy-mm-dd 
But on PC2 same kind of file reads dates like dd/mm/yyy 
On PCn some another (dd-mmm-yyyy for instance)

As work around, date pattern could be used as initial parameter. 
But if you have any idea, how to automate it, please share. 

P.S. 
Idea Nr1: 
Call Powershell command from Octave like: 
[a, b]=system('powershell
(Get-Culture).DateTimeFormat.ShortDatePatternlot');
Problem: it gives error and a lot of bla-bla-bla instead of estimated
yyyy-MM-dd   :)




--
View this message in context: 
http://octave.1599824.n4.nabble.com/How-to-get-default-local-Date-Time-patterns-tp4676091p4676120.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]