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

  • Home
  • SEARCH
  • 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 6201569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:34:41+00:00 2026-05-24T04:34:41+00:00

In flex (flash builder 4) I have a Date() property that I am passing

  • 0

In flex (flash builder 4) I have a Date() property that I am passing to Zend AMF (php) and I want to store that (as well as other data) in mongoDB.

Mongodb is complaining about the date because it comes across as a Zend_Date object, which appears to be an object containing several properties and Mongodb is saying that it can not accept blank properties.

So, I take that to mean it needs to be converted to something else before I can store it?

If so, how do I do that?

At the moment I have taken the approach of converting the Zend_Date object in to a date string to store it (in php):

$object->readyDT=date("m/d/Y H:i", strtotime($object->readyDT)); //convert to string

That works fine, and I have a string in mongodb of that date.

Now, when I load the date from MongoDB, I need to convert it back to a Zend_Date so it properly converts back in to a Date() object in flex (I have to check that it’s not blank or it throws errors in php):

if (isset($object->readyDT) && $object->readyDT!=="") $object->readyDT = new Zend_Date($object->readyDT, 'MM/dd/yyyy hh:mm');

This all works, but it seems like there should be a much easier way to take a Date() from flex and get it stored in MongoDB via Zend AMF/PHP. ?

  • 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-24T04:34:42+00:00Added an answer on May 24, 2026 at 4:34 am

    Sometimes I try to store dates as unix time when I can get away with it. They store easily (just a number), are easy to initialize, and a universal concept in almost every language (including PHP). The only different between AS3 unix time and other unix time’s is that AS3s is a bit more precise, milleseconds rather than seconds.

    In a nut shell, unix time is measured in seconds since way before I was born. January 1st, 1970. See: http://en.wikipedia.org/wiki/Unix_time

    reading: http://php.net/manual/en/function.time.php
    relevant stackoverflow: Getting unix timestamp in milliseconds in PHP5 and Actionscript3

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Flex builder 3 already installed on my machine. Now, I want to
I have been using Flash Builder to build my flex software and I am
I am new to flex, actionscript and flash builder (having to do an upgrade
i am using Flash-builder 4 and developed an application to capture screen image and
I needed some guidance on how to use FlexUnit 4 within Flash Builder, to
I've got an HTTP service I defined in Flash Builder, via the Data Services
I have some code that uses an ArrayCollection, it imports: import mx.collections.ArrayCollection; then: static
Greetings, I am developing a project with Flex, and I need to deploy my
Suppose I develop an application with the logic as a CLI program that can
I'm fairly new to this whole web-development thing (2 weeks maybe, my 1st scraping

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.