Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1088335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:03:30+00:00 2026-05-16T23:03:30+00:00

We have a search utility that needs to search by date: So I type

  • 0

We have a search utility that needs to search by date:

So I type in a date “04-20-1982” in the search field. In the code:

Alert.show("string date::"+message.searchKeyword);

dateOfBirth = DateField.stringToDate(message.searchKeyword,"MM-DD-YYYY");

Alert.show("date::"+dateOfBirth);

The first alert prints as string date::04-20-1982

The second alert prints as date::Tue Apr 20 00:00:00 GMT-0400 1982

The issue is our timezone is EST and since it changes it as GMT -400, it takes the time as Mon Apr 19 23:00:00 EST 1982 and does not return any results. The actual DOB in the DB is Apr 20 1982.

So please let me know how to avoid this conversion to GMT -400 Timezone and just send it as a date without any timezone.

Thanks

Harish

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:03:30+00:00Added an answer on May 16, 2026 at 11:03 pm

    Dates are transfered to/from Flex client as UTC date – no timezone information available. Transfer to the UTC/local time happens automatically on protocol level.

    You can use something like this to get the offset and manually calculate the date:

     var dNow:Date = new Date();
            trace("Your time zone offset: " + dNow.getTimezoneOffset() + " minutes");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little utility that does a search of a number of files.
I have a search box that doesn't have a submit button, I need to
I have a search program that will be looking at a database from a
I have a search query that I'm inheriting and attempting to optimize. I am
We used to have a search, that checks two columns for some words. Both
I have created one library with Utility.h file. I want to add that custom
I have an ASP.NET page that contains two div's. Both have search fields and
I have a search box that works great in WinForms, but is giving me
I have search in MSDN and I can't figure where are the POST parameters
I have a search form with a query builder. The builder is activated by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.