Date format

skipper

Member
Licensed User
Hello all,

Is it possible ro retrieve the current date/time formats? I would like to save the current format, change the date/time format to any format I need, do whatever I have to do, then restore the date/time format to the previous format.

thanks
Mimmo

PS: Just to clarify, I mean retrieving the default format. Setting a global variable with the default format I would use trough the program solve the question.
 
Last edited:

mjcoon

Well-Known Member
Licensed User
That's right, but the help file specifies the default.

That's no value if you want to write a module that can be used with any code. If the module has to set the format it needs to be able to re-instate it so that there are no unintended side effects. This is all part of "encapsulation".

I thought of exactly this problem when I just offered a bit of code to do date and time setting. http://www.b4x.com/forum/additional-libraries/959-systime-library-2.html#post28278

Mike.
 
Top