Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (datetime)
Browsing index pages (14 articles)
↧

How to get time format used is 24 Hour or 12 Hour in iPhone and Android Time...

Am using sdk 3.2.2, alloys and developing app for iPhone and Android. I need to get the time format selected by the user for device use. In picker, we can use format24: true. But am unable to get how...

View Article


Titanium Alloy: saving model with DATETIME('NOW')?

Hi, I am trying to save a new entry to my "recent" collection, which is a SQLite table named "recent". I cannot seem to insert the date by setting the column date to 'CURRENT_TIMESTAMP' or...

View Article


Datatime in a Database SQlite ?¿?

In appcelerator Titanium Studio: well, I am trying to add Datatime (now) in the database (name: todo) CREATE TABLE "todo" ("item" TEXT DEFAULT (null) ,"done" INTEGER DEFAULT (null) ,"title"...

View Article

How to Convert datetime in Alloy Framework

I have a String datetime : 'Thu Jul 03 09 2013 00:00:00 GMT+0700 (ICT) ' How to convert => 2013/09/03

View Article

Not returning date when today's date is passed

Running Windows, Android Have the FFox SQL Manager, when I execute the below Qurey in that tool, it returns proper data select m.type, m.details, m.date, m.time from meals m where m.date = '2013-08-26'...

View Article


Convert Sqlite DateTime into JavaScript DateTime

I have a DateTime value coming from a sqlite table. The column, DateTimeStamp, is defined as a DateTime. It looks like this: rows.fieldByName('DateTimeStamp') That by itself returns this: 2012-06-02...

View Article

parsing date time string?

I'm attempting to parse a mysql datetime field output. So far my method below works, I think, in getting it into the JS date object, however when I attempt to use some of the Data data object methods...

View Article

Using a current_timestamp

Could someone give me an example of how to use a current_timestamp value in a select statement. Here is what the timestamp looks like in my db: 2012-01-07 16:36:38 For example, how would I write the...

View Article


Passing datetime to a fireEvent

Hi, I have a problem when passing picker.value to events : I do :Ti.API.info(picker.value); Ti.App.fireEvent('startDateSelected', {selectedDate:picker.value}); and for receiving the events...

View Article


Datetime not returning properly from the db

Wondering if someone can point out something obvious I'm doing wrong. I have a table with the following schema: CREATE TABLE person (id INTEGER PRIMARY KEY, modified NUMERIC, name TEXT, screen_name...

View Article

Convert ticks to Date object

Hi, I have a ticks value, how can I convert that to a Date object. In other forums they say DateTime myDate = new DateTime(numberOfTicks); String test = myDate.ToString("MMMM dd, yyyy"); I tried this...

View Article

DB.execute Problem With Field Type DATETIME?

Hi, i have the following sql query:result = db.execute('SELECT Project.id, Project.created, Project.name, Project.good, Project.bad, Project.unchecked, Project.hok FROM projects AS Project');But i get...

View Article

Date.parse error

I'm trying to store a retrieved date d=string (from an rss feed) as a date object, but can't get past the Date.parse function. Every example and test I try in regular browsers works: d =...

View Article


sqlite DATETIME Mobile

var db = Titanium.Database.open('mydb'); db.execute('CREATE TABLE IF NOT EXISTS DATABASETEST (ID INTEGER, date_added DATETIME)'); db.execute('DELETE FROM DATABASETEST'); db.execute("INSERT INTO...

View Article
Browsing index pages (14 articles)


Latest Images