CULTURES in a smart Device Application

  • Thread starter Thread starter Mobile Boy 36
  • Start date Start date
M

Mobile Boy 36

Is there a way to be independent of the Windows settings in a smart device
application?
In that way that the programmer has the control about the date and time
format and deciamal separator.

Can't you achieve this using cultures?
In the complete .Net framework you can make a culture as follows:

Dim ci as CultureInfo
ci=new CultureInfo("en-GB")
Thread.CurrentThread.CurrentCulture = ci
Msgbox(DateTime.Now)

But the Thread.CurrentThread.CurrentCulture is not available and is
underlined with scriggles.
So how can I work arround this problem? OR
What is 'the' way to be independent of the Windows settings in a smart
device application?

Best regards,
Mobile Boy
 
Is my understanding of this problem correct?
You want to set the current culture to en-GB and then get the current time
in that timezone?

All threads in a netcf should have the same culture. However, you can get
the current time for the localtime zone and then convert it to theUTC time
which should be independent of the windows settings.

In case I misunderstood the problem let me know.

Thanks,
Sandy

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top