I have my table "client" in MySQL. I want to set a default date but as I noticed , this isn't possible with "DEFAULT CURDATE()". Some People say it is possible by changing the datatype from last_seen to timestamp. But is it possible to just set the "%d-%m-%Y" or "%Y-%m-%d" as defautlt because with timestamp I also get minutes hours and minutes.
CREATE TABLE IF NOT EXISTS client
(
  pk_macaddr       VARCHAR(17) PRIMARY KEY NOT NULL,
  ipaddress         VARCHAR(15) NOT NULL ,
  hostname         VARCHAR(50) UNIQUE NOT NULL ,
  fk_pk_roomnumber INTEGER NOT NULL ,
  last_seen        DATE ,
  is_online        BOOLEAN default false
);
 
     
    