Freeform project date issue


#1


The DATE function is not displaying correctly I have tried amending the actual date a number of wasy as can be shown in the code below - is this a region issue (im using a UK formatted machine)




CREATE TABLE friends (id INTEGER, name TEXT, birthday DATE);
INSERT INTO friends (id, name, birthday) VALUES (1, "Jane Doe", 19051993);
INSERT INTO friends (id, name, birthday) VALUES (2, "Jeff", 1986-11-17);
INSERT INTO friends (id, name, birthday) VALUES (3, "Happy", 1987-06-23);
INSERT INTO friends (id, name, birthday) VALUES (4, "Sleepy", 1975-08-15);


UPDATE friends
SET name = "Jane Smith"
WHERE id = 1;

ALTER TABLE friends ADD COLUMN email TEXT;

UPDATE friends 
SET email = "jdoe@example.com"
WHERE id = 1;

UPDATE friends 
SET email = "jef24@hotmail.com"
WHERE id = 2;

UPDATE friends 
SET email = "hotdog@email.com"
WHERE id = 3;

UPDATE friends 
SET email = "thistest@london.com"
WHERE id = 4;

DELETE FROM friends WHERE name IS "Jane Smith";


SELECT * FROM friends;


#2

In the example the date is written as text: "May 19th, 1993" so maybe that different notation helps.
By changing the type DATE to TEXT.

Good luck!


#3

That year turns into 1952 yeah?

1975 - 8 - 15 = 1952

Those are numbers.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.