question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to get current date record in adonis?

See original GitHub issue

For that i’m using below method

return await Patient.query().where('updated_at',CURDATE())with('cases').with('visits').first()

can u guide me how to get current date record

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
thetutlagecommented, Jul 14, 2018

Closed for housekeeping reasons.

0reactions
naimeshvajacommented, May 15, 2018

thanks for reply

Bt still its not working

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I getting the previous month's from current date in ...
My code like this : export default class UsersService { public static index(params: Record<string, any>) { const results = User.query() ...
Read more >
Getting Data By User's Timezone with Luzon DateTime
... learn how we can use the user's current time zone to create, update, or query time-sensitive information in AdonisJS using Luxon's Date....
Read more >
Lucid Models - AdonisJs
The first step is to tell Lucid, which fields are supposed to be treated as dates. By default, the timestamps created_at and updated_at...
Read more >
Let's Learn Adonis 5: The Query Builder - Adocasts
Here we have where statements checking whether the project's createdAt date-time value in the database is less than, less than or equal to,...
Read more >
How to Find the Number of Days Between Two Dates in MySQL
Problem: You'd like to get the difference, in days, between two dates in a MySQL database. Example: Our database has a table named...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found