Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-14 Thread Ron Barnes
mailing list <sqlite-users@mailinglists.sqlite.org> Subject: Re: [sqlite] SQLite - Interrogate Date/Time field Statement question STOP SPAMM ING ING ME ASS FACE From: sqlite-users <sqlite-users-boun...@mailinglists.sqlite.org> on behalf of

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-14 Thread Kam YiJie
er to fit my needs? > > Thank you very much for the reply! > > Side note, I'll be visiting Disney in July! > > Regards, > > -Ron > > -Original Message- > From: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] > On Behalf Of Jim Callahan > Sent:

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-12 Thread Ron Barnes
That worked Thank you very Much!! -Ron -Original Message- From: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] On Behalf Of R Smith Sent: Wednesday, April 12, 2017 10:12 AM To: sqlite-users@mailinglists.sqlite.org Subject: Re: [sqlite] SQLite - Interrogate Date

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-12 Thread R Smith
On 2017/04/12 3:50 PM, Paul Sanderson wrote: another oops I see Ryan pretty much posted the same as me 5 minutes earlier - I'll go back to bed :) The more the merrier I say. There is no guarantee I am right, and seeing the problem solved in more than one way usually helps the poster - which

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-12 Thread R Smith
On 2017/04/12 3:08 PM, Ron Barnes wrote: Hello Ryan, That Code below worked as you said it should. Awesome! And Thank you! I now have the days difference for each row. I have one other question if I may pose it to you, how do I count the number of rows, less than a day, or a week or a year

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-12 Thread Paul Sanderson
ite-users-boun...@mailinglists.sqlite.org] > On Behalf Of R Smith > Sent: Wednesday, April 12, 2017 8:32 AM > To: sqlite-users@mailinglists.sqlite.org > Subject: Re: [sqlite] SQLite - Interrogate Date/Time field Statement > question > > > On 2017/04/12 2:13 PM, Ron Barnes wro

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-12 Thread Paul Sanderson
Original Message- > From: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] > On Behalf Of R Smith > Sent: Wednesday, April 12, 2017 8:32 AM > To: sqlite-users@mailinglists.sqlite.org > Subject: Re: [sqlite] SQLite - Interrogate Date/Time field Statemen

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-12 Thread Ron Barnes
@mailinglists.sqlite.org] On Behalf Of R Smith Sent: Wednesday, April 12, 2017 8:32 AM To: sqlite-users@mailinglists.sqlite.org Subject: Re: [sqlite] SQLite - Interrogate Date/Time field Statement question On 2017/04/12 2:13 PM, Ron Barnes wrote: > Hi Jim, > > I ran an overnight job

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-12 Thread Paul Sanderson
gt;> -Ron >> >> -Original Message- >> From: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] >> On Behalf Of Jim Callahan >> Sent: Tuesday, April 11, 2017 11:22 PM >> To: SQLite mailing list <sqlite-users@mailinglists.sqlite.o

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-12 Thread Paul Sanderson
> On Behalf Of Jim Callahan > Sent: Tuesday, April 11, 2017 11:22 PM > To: SQLite mailing list <sqlite-users@mailinglists.sqlite.org> > Subject: Re: [sqlite] SQLite - Interrogate Date/Time field Statement > question > > This code: > > SELECT ( substr('02

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-12 Thread R Smith
On 2017/04/12 2:13 PM, Ron Barnes wrote: Hi Jim, I ran an overnight job and converted 300+ million dates to the ISO 8601 format. Here are examples of the new dates. 2017/04/10 07:24:15 PM 2017/03/07 08:08:58 AM 2016/11/06 12:35:15 PM Since this should be easier how

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-12 Thread Ron Barnes
-users@mailinglists.sqlite.org Subject: Re: [sqlite] SQLite - Interrogate Date/Time field Statement question On 2017/04/12 1:24 AM, Ron Barnes wrote: > Hello all, > > To everyone who helped me before - thank you very much! > > I'm coding in Visual Basic .NET (Visual Studio 2015) Commun

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-12 Thread Ron Barnes
ct: Re: [sqlite] SQLite - Interrogate Date/Time field Statement question This code: SELECT ( substr('02/13/2016',7,4) || '-' || substr('02/13/2016',1,2) || '-' || substr('02/13/2016',4,2) ) ; yields 2016-02-13 The above code, is dependent on fixed length strings (the leadin

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-12 Thread R Smith
Mailer messed up the format on a very important space... retry: -- Script Items: 4 Parameter Count: 0 -- 2017-04-12 13:43:15.875 | [Info] Script Initialized, Started executing... --

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-12 Thread R Smith
On 2017/04/12 1:24 AM, Ron Barnes wrote: Hello all, To everyone who helped me before - thank you very much! I'm coding in Visual Basic .NET (Visual Studio 2015) Community. I have to count a Date/Time field and the problem is, this field contains data in a format I'm not sure can be

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-11 Thread Jim Callahan
t; Side note, I'll be visiting Disney in July! > > Regards, > > -Ron > > -Original Message- > From: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] > On Behalf Of Jim Callahan > Sent: Tuesday, April 11, 2017 9:15 PM > To: SQLite mailing list <

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-11 Thread Ron Barnes
sqlite] SQLite - Interrogate Date/Time field Statement question Can you convert the dates to ISO 8601 date time format? https://en.wikipedia.org/wiki/ISO_8601 -MM-DD hh:mm:ss ISO date strings (when zero filled) are sortable which necessarily includes comparable (Java speak). By "zero fil

Re: [sqlite] SQLite - Interrogate Date/Time field Statement question

2017-04-11 Thread Jim Callahan
Can you convert the dates to ISO 8601 date time format? https://en.wikipedia.org/wiki/ISO_8601 -MM-DD hh:mm:ss ISO date strings (when zero filled) are sortable which necessarily includes comparable (Java speak). By "zero filled" I mean for March you have "03" and not just "3". Then if you