1 Reply Latest reply on Apr 23, 2008 1:53 AM by atta707

    Locale Date and Time display

    pamet
      Hi,

      I don't know if this is possible with Flex. I would like to read user's regional settings (from his operating system) for displaying date and time and then display these values in according format. So how do you read those settings from the user's OS? Is there a way?

      thx in adv
        • 1. Re: Locale Date and Time display
          atta707 Level 2
          You cannot read OS setting using Flex. Maybe you can do it using AIR. For Locale aware date time format have you looked into

          Date.toLocaleString(),
          Date.toTimeString(),
          Date.toLocaleTimeString(),
          Date.toDateString(), and
          Date.toLocaleDateString()

          methods?