About 53 results
Open links in new tab
  1. How do I get the current time in Python? - Stack Overflow

    Just typing datetime.datetime.now() in my Python 2.7 interactive console (IronPython hasn't updated yet) gives me the same behavior as the newer example using print() in the answer. I haven't successfully …

  2. How to convert numpy datetime64 [ns] to python datetime?

    Oct 25, 2018 · I need to convert dates from pandas frame values in the separate function:

  3. DateTime2 vs DateTime in SQL Server - Stack Overflow

    Aug 26, 2009 · Which one: datetime datetime2 is the recommended way to store date and time in SQL Server 2008+? I'm aware of differences in precision (and storage space probably), but ignoring those …

  4. How to determine if a variable is a datetime object?

    While this works for datetime, it doesn't work for date, because datetime is a subclass of date. For example if you try to test isinstance(my_datetime, datetime.date) it will return true, which you …

  5. .net - Is there a Date-only data type in C#? - Stack Overflow

    Mar 21, 2025 · No there isn't. DateTime represents some point in time that is composed of a date and a time. However, you can retrieve the date part via the Date property (which is another DateTime with …

  6. can't compare datetime.datetime to datetime.date

    Aug 30, 2011 · 24 You can use the datetime.datetime.combine method to compare the date object to datetime object, then compare the converted object with the other datetime object.

  7. How can I overcome "datetime.datetime not JSON serializable"?

    684 Building on other answers, a simple solution based on a specific serializer that just converts datetime.datetime and datetime.date objects to strings.

  8. convert datetime64 [ns, UTC] pandas column to datetime

    I am not aware of the format of the datetime in the above dataframe. I applied pd.to_datetime to the above column where the datatype is changed as datetime64 [ns, UTC].

  9. Convert date to datetime in Python - Stack Overflow

    Dec 21, 2009 · Is there a built-in method for converting a date to a datetime in Python, for example getting the datetime for the midnight of the given date? The opposite conversion is easy: datetime …

  10. Convert DataFrame column type from string to datetime

    Jun 16, 2013 · How can I convert a DataFrame column of strings (in dd/mm/yyyy format) to datetime dtype?