how to get current date record in adonis?
See original GitHub issueFor 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:
- Created 5 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Closed for housekeeping reasons.
thanks for reply
Bt still its not working