How to write query condition with a date?

Hi,
how can I write this query on Drupal8?
"SELECT * FROM mytable WHERE DATE(startdate)=CURDATE()"

This is not working:

$query = db_select('mytable', 't')
->fields('t')
->condition('DATE(startdate)=CURDATE()');
->execute()
->fetchAssoc();
return array();

Is it still possible to write the query as a string and launch it without db_select?

Thank you

Claudio

[Solved] Change Views table default sort programmatically

I have a View displaying results in a table. Within the table settings I've set a few fields to be sortable with one field being the default sort. How can I programmatically change this default sort? There are some cases where I need the default sort to be different.

Also in settings I've set "Override normal sorting if click sorting is used" and I'm using Views::getView() to load my view onto the page using ajax.

Seeking tutorial for Varbase Vartheme Hero Slider

Hello,

I just installed Drupal 8 using the Varbase package. I somehow got the home page Hero slider to work, but I really want to develop it better. This means embedding html elements in each slide, which I seem not to be able to do. I have a lot of experience with Revolution Slider in WordPress, so I know what I want to do. I just don't know how to do it with the Hero slide show that comes with Varbase.

What I really need is instruction and tutorials for the Varbase Hero slide show program.

am inquiring

i am a beginner but i am using drupal8.3.6, before i was using d8.3.3 and i had built my site almost to finishing it but it started to bring ,"the website encountered an expected error,please try again later.. " everytime i would click on any menu item like extend,appearance, reports and others.
but after i upgraded a new version to and it stopped. but now it has happened again.and now when i click on " Extend" on the Menu bar it doesnt render it brings " Website encountered an expected error.please try again later"

ResourceResponse on delete has to be empty?

Hey,

Is there the possibility, that ResourceResponses on delete requestshave to be without data?

I ran into the following problem: When I access a REST delete request and this request returns an ResourceResponse with data it throws an "A fatal error occurred: Serialization for the format is not supported".

Code:

Security update required! Manual updates required

[On CentOS 6 x64]
[Drupal version 8.3.5]

Hi all,

I have just installed Drupal version 8.3.5 1-Click Install on the Cloud Server Vultr. I have just started to build a few things I have not used Drupal before. But what I have seen the following message when looking at updates;

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x