i am sending the date and time in ( mm/dd/yyyy hh:mm) this format from india to australia( i am booking a date and time for future), for the user in australia it should show him according to his local time. As australia is 5 hrs and 30 mins past to india. how to do it using flex3.
Date and time conversion according to Zone using Flex3
1.4k Views Asked by lavi At
2
There are 2 best solutions below
0
bug-a-lot
On
First, use the Date class. Second, use UTC values when sending dates (see getUTC family of methods). So when you receive a date, you'll know it is in UTC so you can set up a Date instance with those UTC values (see setUTC family of methods). The class will automatically do the timezone calculations for you and when you present it to the user it will be in their timezone.
Related Questions in APACHE-FLEX
- call Win32 API in flex to set Window Display Affinity
- Adding a listener to a VerticalScrollBar in flex
- Two ane file conflict in one flex mobile application
- Using AS3 Timer & distriqt Notification ANE To Send Notifications While In Sleep Mode
- Creating a vertically draggable container in Adobe Flex 3.5
- There is no save() method in FileReference Class of Flex
- Passing data between MXML files and opening one after Click on another
- How to check a Number in mxml?
- Strange flex module behavior.Module become null when add a little nonsense code
- AS3 can't find the load method on a Loader
- 2032 Flex error while contacting HTTPS REST services
- Error Message not generated
- ASC2 compiler with Flash Builder 4.6
- Is there a class in AS3 that tells you the type of the URL protocol?
- Skip window from being captured
Related Questions in DATETIME
- Python datetime.now() with timezone
- Create a list of sequential monthly dates in PHP given initial date and quantity
- DataTable RowFilter on Time component of DateTime column
- Joda DateTime Json date format issue
- how to create folder and file with datetime in wpf application
- String concatenation with padded integers
- What is the correct DateTime format in WebSQL to perform date comparison queries?
- how to get the time interval of a date and a datetime displayed as day,hour, min,seconds in sql
- DateTime.Now.ToString("HH:MM") allways gives 20:06
- How can I get the ctime and/or mtime of a file in Python including timezone?
- add time (char(8)) to date column
- MyBatis cannot work with joda DateTime?
- PHP Fatal error: Call to a member function format() on boolean
- Use DateTime format in a class but restrict time tokens
- Modify records to account for correct priority and order between two systems
Related Questions in FORMATTING
- C++: Re-use line printed to console
- NSAttributeString - How to remove auto formatting for a date or time item?
- Bifurcate a string, removing the middle of the string instead of end
- Use DateTime format in a class but restrict time tokens
- Doesn't change the format of columns to date
- How do I convert a double into an n-character string using exponential notation?
- Java Integer Pyramid
- proper way to get nice string from exception
- How to edit text in columns?
- Simple and clean java float to string conversion
- Having trouble with list post-processing
- Formatting equations?
- Looking to export the content from a website into doc files
- SAPUI5 local scope object as formatter function parameter
- DataTable contains strings with Hashtags when imported from .xlsx instead of .xls
Related Questions in TIMEZONE
- Python datetime.now() with timezone
- How to set timezone to the local in Rails?
- keep timezone "CET" from convert into "CEST" in python
- Golang time zone parsing not returning the correct zone on ubuntu server
- How to check server timezone
- How can I get the ctime and/or mtime of a file in Python including timezone?
- DateTimeOffset parse and custom time zone
- How to use Standard Time Only in TimezoneInfo.ConvertTime C#
- Are TimeZoneInfo.Id indexes are always the same?
- Older dates are parsed as summer time, even if that is not true in Java
- Can't set timezone using abbreviation
- Converting an ISO 8601 string to Current TimeZone DateTime Object in Javascript
- Ruby: Time.parse() Incorrectly Returning Alaskan Timezone
- Pandas date time formatting with timezone shifting
- What is a good practice when we need to work with datetime
Related Questions in COUNTRY
- PHP SQL - Sort by country
- Don't show country in results of Google AutoComplete
- How to get points from OpenStreetMap of a certain country?
- Determine country from Google Scholar Profile
- In Django, How to Add Regional Prefix to Most Paths
- Restricted bias in Address search android
- Country restriction in autocompleteFilter in android
- Determine whether user is likely to be typing in dd/mm or mm/dd
- Google BigQuery - 403 - “This service is not available from your country”
- Cakephp - Choose your preferred country for ecommerce
- In C#, how to get the "Country or region" selected under "Region & language" in Windows 10?
- How to identify each visitors country/location using php?
- Official list of countries for iPhone AppStore and In-App Purchase?
- Date and time conversion according to Zone using Flex3
- DropDown List resets to the first item and doesn't return a selectedvalue
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Flex has no timezone calculation support built-in (you can get your local clock's offset and convert between UTC time and local time and that's basically it), your best bet would be to do the conversion via a server-call (with Joda handling the timezone calculations, which includes DST offsets).