How to record the date in Sqlite in an Adobe Air application

Hi friends,

I make a flex Application Adobe AIR with SQLITE database, what I want save the Date in the following format DD/MM/YYYY text but in my TABLE, I gave the data type is DATE.

It store the value as this Sun Dec 2 00:00:00 GMT + 0530 2012 I want to store the value in MM/DD/YYYY. How to do this?

looking for a useful suggession.

See you soon,.

B.Venkatesan.

Oops, didn't check my email several days who have not noticed your answer

not to get a Flash Builder in my desktop

But it should be:

private var Totaldays:int;

TotalDays = Math.Floor (Math.abs (date1. valueOf() -date2. valueOf()) / (24 * 60 * 60 * 1000))

Beware of the date1.valueOf () returns the number of milliseconds since midnight January 1, 1970

If you really want Totaldays to become a chain, then:

TotalDays =String (Math.floor (Math.abs (date1. valueOf() -date2. valueOf()) / (24 * 60 * 60 * 1000)))

Tags: Flex

Similar Questions

  • Create form that records the data locally - iOS and Windows (using AIR)

    Hi, I need to be able to create a form that stores the parts locally on iPads and touch of Windows screens. The app will be used as a kiosk at exhibitions, so there is no internet connection, but devices will be limited in number and owne3d by the customer.

    Is there a simple way to do this? I looked at other options: HTML5 (where the user is rerouted to local browser) or Acrobat?

    With AIR, you can still use an internal DB SQLlight to store data - or even write a based local text file. Depends on the complexity of the data, I guess.

    Adobe Flash Platform * working with local SQL databases in AIR

  • How do to call the BlackBerry menu form share an Adobe Air application?

    Hello

    I'm looking for a tutorial or demo code that describes how to call the BlackBerry menu sharing an Adobe Air based application.

    I found a tutorial of waterfalls for it - there's one for Adobe Air too?
    - http://bbcascadescode.tumblr.com/post/38998702671/invoke-share-for-bb10

    This is a screenshot of the Action menu:

    Advice welcome!

    Here you go:

    package com.lib.playbook.invocation
    {
        import com.lib.playbook.controls.List;
        import com.lib.playbook.pages.TitlePage;
        import com.lib.playbook.renderers.IconListRenderer;
    
        import flash.events.Event;
        import flash.events.IEventDispatcher;
    
        import qnx.events.InvokeEvent;
        import qnx.events.InvokeQueryTargetEvent;
        import qnx.fuse.ui.core.Action;
        import qnx.fuse.ui.events.ActionEvent;
        import qnx.fuse.ui.events.ListEvent;
        import qnx.invoke.ActionQuery;
        import qnx.invoke.InvokeManager;
        import qnx.invoke.InvokeRequest;
        import qnx.invoke.InvokeTarget;
    
        public class InvokeSearchPage extends TitlePage
        {
            private var request : InvokeRequest = null;
            private var targets : List = new List();
    
            /////////////////////////////////////////////////////////////////////////////////////////
            public function InvokeSearchPage()
            {
                super();
                this.title = 'Search With';
                this.titlebar.dismissAction = new Action( 'Cancel', null, {id:'cancel'} );
                this.titlebar.addEventListener(ActionEvent.ACTION_SELECTED, ActionSelected );
    
                this.targets.cellRenderer = com.lib.playbook.renderers.IconListRenderer;
                this.targets.addEventListener(ListEvent.ITEM_CLICKED, TargetSelected );
                this.targets.rowHeight = 140;
                this.addChild( this.targets );
            }
    
            ///////////////////////////////////////////////////////////////////////////////////////////
            public function filter( request :InvokeRequest ) : void
            {
                this.targets.removeAll();
    
                this.request = request;
    
                //trace( 'filter ' + request.mimeType );
                InvokeManager.invokeManager.addEventListener( InvokeQueryTargetEvent.SUCCESS, TargetsFound );
                InvokeManager.invokeManager.queryInvokeTargets( request.mimeType, request.uri, request.action, request.targetOptions );
            }
    
            ///////////////////////////////////////////////////////////////////////////////////////////
            private function TargetsFound( event : InvokeQueryTargetEvent ) : void
            {
                InvokeManager.invokeManager.removeEventListener(InvokeQueryTargetEvent.SUCCESS, TargetsFound );
                //trace( 'TargetsFound' );
                var action : ActionQuery;
                var target : InvokeTarget;
                for each( action in event.actions )
                {
                    for each( target in action.targets )
                    {
                      this.targets.addItem( { data : target.target, label : target.label, icon : 'file://' + target.icon } );
                    }
                }
            }
    
            ////////////////////////////////////////////////////////////////////
            private function TargetSelected( event :Event ) : void
            {
                if( this.targets.selectedIndex >= 0 )
                {
                  this.request.target = this.targets.selection;
                  InvokeManager.invokeManager.invoke( this.request );
                }
            }
    
            ////////////////////////////////////////////////////////////////////
            private function ActionSelected( event :ActionEvent ) : void
            {
                switch( event.action.data.id )
                {
                    case 'cancel' : this.dispatchEvent( new Event( Event.CANCEL ) ); break;
                }
            }
    
            //////////////////////////////////////////////////////////////////////
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
            {
                super.updateDisplayList( unscaledWidth, unscaledHeight );
    
                this.targets.setPosition( 10, this.top + 10 );
                this.targets.setActualSize( unscaledWidth - 20, unscaledHeight - this.targets.y - 10 );
            }
        }
    }
    

    And the rendering engine:

    package com.lib.playbook.renderers
    {
    
        import qnx.fuse.ui.display.Image;
        import qnx.fuse.ui.listClasses.CellRenderer;
    
        public class IconListRenderer extends CellRenderer
        {
    
            private var icon    :Image = new Image();
    
            /////////////////////////////////////////////////////////////////////////
            public function IconListRenderer()
            {
                super();
            }
    
            ///////////////////////////////////////////////////////////////
            override protected function onAdded():void
            {
                super.onAdded();
                this.addChild( this.icon );
            }
    
            ///////////////////////////////////////////////////////////////
            override protected function onRemoved():void
            {
                super.onRemoved();
                this.removeChild( this.icon );
            }
    
            /////////////////////////////////////////////////////////////////////////////////////
            override protected function drawLabel(unscaledWidth:Number, unscaledHeight:Number):void
            {
                super.drawLabel( unscaledWidth, unscaledHeight );
    
                if( this.data )
                {
    
                    if( this.data.hasOwnProperty( 'icon' ) && this.data.icon != null )
                    {
                        this.icon.setImage( this.data.icon );
                        this.icon.setPosition( 10, 15 );//( unscaledHeight - this.icon.height ) / 2 );
                    }
                    else
                    {
                        this.icon.setImage( null );
                    }
    
                }
    
                this.label.x = 140;
                this.label.width = unscaledWidth - this.label.x - 20;
            }
        }
    }
    

    references com.lib.playbook our our inner classes, but you should get the approach to apply.

  • How to analyze the data of the cDAQ and Signal Express, especially after analysis?

    In the first series of tests of my instrument, it took longer than expected for the race.  Thus, the data was saved in 6 days.  The file is too large for export to Excel.  At the beginning of the project, I was as ignorant as I could go ahead and add analysis and the scaling of measures.  By the scaling, I mean my data of switching current dew points or whatever it is that I record.

    How to evolve the data to read the output data as expected 4mA = point of dew of-20 C or 0 PSIG?  Can I pre program this to be recognized for each event?

    For real analysis I am doing – I would first analyze the data I recorded and choose different points to send to Excel to graph and analyze.  Is this possible?

    Secondly, I would like to know how to scale and analyze my data in the project without having to do this later analysis in the future?

    I have a cDAQ-9172 with LabVIEW signal Express 3.0 that uses four modules - 9211 2 modules of thermocouple, my 4-20 1-9201 module +/-10V module and 1-9203.

    Thank you for any assistance.

    Hi Patricia,

    "' You can do this by adding a step Load/Save signals ' analog '.  I hope this helps!

  • all my data is all save on the local disk c, how to share the data with the other drive, local drive d.

    all my data records on the local disk c, how to share the data with the other drive, local drive d.

    Hi Jasonbichard,

    1. what type of drive is D? Is - this another partition on the same disk?

    2 Windows operating system you are using?

    You can change the location of the disk to save the data in the d: instead of C: and check if it helps.

    a. navigate to the location (username) C:\Users\.
    b. right click on the folder that you want to change the location, and then select Properties.
    c. click on the location tab and change the location to D: drive.

    d. click on apply and Ok.

  • How to see the date and time on your images?

    I use camcorder Sony HXR-NX5U to shoot my video which I then edit in Premiere Pro. How can I record the date and time based on actually recorded video? Is a function that I need to set up on the camera or these data incorporated into each HD clip and all I have to do is just to change some settings in Premier Pro, as well as the date and time appear magically on my video?

    He is a third-party software which costs $80 to show the date and time. This is not an option.

    Can I ask you why you do this?  It of a unique client work, a curiosity or are you in the business of generating media for legal needs?  Adobe has access to view the metadata of the files in the metadata panels, however, source time is not available in timecode effects and overlays customized (via the program monitor tools).  It will be manual labor, which is ok if it is the specific need.  However, if it is a constant for your business, you must consider the types of tools that apply best practices (as the camera that allows you to record recovery /) or by using a third party tool like the one I mentioned.  No free lunch.  This has been a feature of the long and often requested.

  • How to subtract the DATE CURRENT SYSTEM and tire of Siebel

    Hi Experts,

    How to subtract the date of DAY and Date, which came in Siebel?

    Example:
    The DAY - Date records in Siebel

    Current date = 25/11/2012
    Registration date in Siebel = 20/11/2012

    Technically the answers I want will be 5.
    How can I do this? My idea is to put a phrase in the MDB layer, but I want to just get your ideas:

    Current_Date - "Oracle Data Warehouse. "'"' Catalogue'."" """dbo"."" TABLE_NAME ". "' COLUMN_NAME '.


    Thank you!

    Hello

    You can use the available in OBIEE timestampdiff function to get the difference between two dates. This is one of the blogs that can help with the syntax.

    http://Shahin-OBIEE.blogspot.in/2012/04/various-calculations-for-date_16.html

    You can also google timestampdiff function for details on usage and syntax.

    Thank you

  • How to record the addresses of email on my iPad

    Hello

    How to record the addresses of e-mail of others and mine on my iPad?

    Thank you

    One way to do this is to go to Contacts and click on the sign more. You can then type a name for your contact and then press 'Add an email' to display the email field. In addition, if you are on iOS 9 on your iPad (settings > general > about and check the Version) you can add email to the Contacts directly from Mail addresses. When Mail detects a new contact it shows a small banner at the top of the message, and if you type you have the option to create a new contact or to add the new e-mail address for an existing contact.

  • Anyone know how to check the date of warranty until when?

    Anyone know how to check the date of warranty until when?

    https://checkcoverage.Apple.com/Jo/en/;JSESSIONID=9pJ0X9pFPJtNg3c44yDGCvk9pVpt5l QSgn4B60y4Skv1WfmnqMkF!-1840326800

  • How to find the date item was my favorites on Mozilla Firefox

    on system moot bookmark how to find the date of the bookmark?

    In bookmarks menu select organize bookmarks to open the bookmarks library. In the bookmarks library, click views, and then display the columns and then added. This will display a column showing when a bookmark has been added.

  • How to set the date and time on my HP Officejet pro 8600 more?

    How to set the date and time on my HP officejet pro 8600 more?  It just on a printed journal Jan-oo-oo fax shows 00:00 AM.  There are no instructions on how to change this.  I need proof that I sent a fax to a certain date and time.  Help, please.  Thank you

    Hello

    Below are the steps to set the Date and time for your device:

    1. On the Control Panel, press the right arrow key ( ), press Setup ( ).

  • Tecra M5 does not record the date and time - battery RTC or CMOS checksum is inconsistent

    My Tecra M5 PTM50E reverend new does not record the date and time. I loaded RTC battery for 8 hours when electricity is on in the said user's manual. I don't know where is the problem. The BIOS settings are respect after power is on.

    When I change any value in the BIOS, the changes are saved properly but date & time system restored to their value 01/01/2000, 00:00 every time when I get out of turning off more of 2-3 min. Message "RTC battery is low or CMOS checksum is inconsistent.

    Press [F1] to set Date/time"does not appear when I power on the computer. Any suggestions?

    Hi guys

    Usually this problem appears only if the CMOS (real time clock) battery is empty or corrupted.
    The real time clock battery powers the internal clock in real time and calendar. It also maintains the system configuration. If the RTC battery is completely discharged, the system loses these data and the real-time clock. In this case, the message RTC battery is low or CMOS checksum is inconsistent appears.

    So I see only two possibilities:
    Either you will charge the battery for real-time clock, or you ask the technician for replacement.

    Generally, the battery must be completely charged after 8-9 hoers but try to connect the laptop to the power adapter for a long time.
    If it will not help solve the problem if you contact the ASP for the RTC battery replacement.

  • Camileo S20 - How to display the date and time

    Hi, all. I got as Christmas present the Camileo S20, and I am not able to view the date and time in the video. In the manual is no reference on this subject, only how to set the date and time. But what is the intention to set the date and time in the camera, if it is not possible to display video?

    Hello

    Have you checked the user manual of your TV cam?

    If it of possible to display the data and the time you can find in your user manual how to do this. It always interesting to read ;) s

  • my Apple Watch does not record the data of my activity on my iPhone. The application of the activity is implemented on my watch and twinned with phone and not yet to record data.

    my Apple Watch does not record the data of my activity on my iPhone. The application of the activity is implemented on my watch and twinned with phone and not yet to record data.

    HI - try the following steps:

    On your iPhone close application of activity and also, if it runs in the background, the health app (you can close open apps, including the app shows):

    -Double-click the Home button, and then drag upward on each of the app previews to close.

    It can help to restart your iPhone and your watch. Turn on both devices off the power together first, and then restart your iPhone before restarting your watch:

    -To switch off your watch: press and hold the button side until you see the cursor off the power; slide it to turn off;

    -To switch on: press and hold the side button until you see the Apple logo.

    If this does not resolve the problem, try next disconnect and rematching of your watch:

    -L'app shows on your iPhone shows backups automatically, including a new when the unpairing via the application.

    -Choose to restore the watch (backup restore) when provided the opportunity during the whole.

    -Most of the data and settings will be restored, with a few exceptions (for example cards Pay Apple, access code).

    - Pairing your Apple Watch and Support Apple - iPhone

    - Set up your Apple Watch - Apple Support

  • How to reset the data counter without resetting the phone

    How to reset the data counter each month so that I can control my data counter with our reset the phone (or) without using factory data reset.

    Thanks for the reply much appreciated.

    Parameters

    Data Manager

    Press the lower left key

    Reset the data counter

Maybe you are looking for

  • Firefox keeps crashing. I have uninstalled/reinstalled/restart in safemode, continuous still crash at startup.

    Please help me to get Firefox running. I really want to use Firefox, as well as all of my passwords stored in it. Since last week, I was not able to open Firefox. I have read several articles on how to solve this problem and I have tried but not succ

  • LCD list needs to be upgraded

    I received this message and don't know how to fix it.  Scanner not scan

  • Using the 3D with spherical or cylindrical coordinate chart

    I found the place to change the properties of 3D-graphics to accept spherical or coordinates of tail, but I can't find any documentation on how to enter the data.  This call graph is correct, or do I need a different function?  I have attached the de

  • Cannot print after replacing the 2wire modem

    Original title: I use my laptop exclusively. Recently, the 2wire modem was replaced, and everything continued to work perfectly, except for the fact that I can't print. What should I do to correct this? No changes have been made to my laptop after in

  • computer hangs arbitrarily

    HP 520Intel processor dual core 2.2 ghz2 GB of ramVista SP2 Hi, my HP 520 laptop recently started to freeze arbitrarily. everything stops suddenly, without warning. mouse pad, keyboard, screen, disk hard etc. my laptop is set to close with a push of