Showing posts with the label datetime

[FIXED] How to add minutes to the time part of datetime

Issue How to add minutes(INT) to the time part of datetime ? For example : If i have datetime…

[FIXED] Calculate a difference in times between each pair of values in class using Pandas

Issue I am trying to calculate the difference in the "time" column between each pair of e…

[FIXED] Unknown database function 'DATE_FORMAT' in OracleDb

Issue Below is how my BUS_DATA table looks like src="https://i.stack.imgur.com/ZvpOw.png&quo…

[FIXED] datediff function for dates or timestamps

Issue I have a function that calculates the difference between 2 dates or timestamps which is worki…

[FIXED] How to store a datetime in MySQL with timezone info

Issue I have thousands of photos that were taken in Tanzania and I want to store the date and time …

[FIXED] sp_executesql with datetime output parameter

Issue I'm facing a problem here in SQL Server. I have to use the stored procedure sp_executesql…

[FIXED] DateTime2 vs DateTime in SQL Server

Issue Which one: datetime href="https://msdn.microsoft.com/en-us/library/bb677335.aspx&quo…

[FIXED] Infilling every other Row in a Pandas Dataframe the the value from the last row + 30 minutes

Issue I'm adding dummy rows to some data so I am able to Join it with an existing dataset. I ne…

[FIXED] Get current week data in sqlite3?

Issue I am trying to get current week records from the sqlite3 database or at least get all records…

[FIXED] How to return only the Date from a SQL Server DateTime datatype

Issue SELECT GETDATE() Returns: 2008-09-22 15:24:13.790 I want that date part without the time …

[FIXED] Convert integer value to DateTime in SQL Server 2012

Issue I have a table called "EventLog" which has the column called nDateTime of type int…

[FIXED] When applying 'WHERE' for timestamp directly and applying 'EXTRACT' showed different results (Codes Attached)

Issue According to this Kaggle exercise on Task 5 (Write the query): noreferrer">https://ww…

[FIXED] Sql server date Column format

Issue I have one column in SQL Server table with type date and its default setting is yyyy-MM-dd .…

[FIXED] How to get Time from DateTime format in SQL?

Issue I want to get only Time from DateTime column using SQL query using SQL Server 2005 and 2008 …

[FIXED] Pass datetime parameter in Web API?

Issue I want to ask how to pass datetime parameter in Web API, how to pass datetime parameter in op…

[FIXED] Linq query not working but its equivalent SQL Server query is working

Issue Following SQL query works fine (Give expected results) in SQL Server. SELECT * FROM Imported…