Python | numpy.datetime64() method Last Updated : 05 Sep, 2019 Comments Improve Suggest changes Like Article Like Report With the help of numpy.datetime64() method, we can get the date in a numpy array in a particular format i.e year-month-day by using numpy.datetime64() method. Syntax : numpy.datetime64(date) Return : Return the date in a format 'yyyy-mm-dd'. Example #1 : In this example we can see that by using numpy.datetime64() method, we are able to get the date in the particular format i.e yyyy-mm-dd. Python3 1=1 # import numpy import numpy as np # using numpy.datetime64() method gfg = np.array(np.datetime64('2019-08-26')) print(gfg) Output : array('2019-08-26', dtype='datetime64[D]') Example #2 : Python3 1=1 # import numpy import numpy as np # using numpy.datetime64() method gfg = np.array(np.datetime64('2019-08', 'D')) print(gfg) Output : array('2019-08-01', dtype='datetime64[D]') Comment More infoAdvertise with us Next Article Python datetime module J jitender_1998 Follow Improve Article Tags : Python Python numpy-DataType Practice Tags : python Similar Reads Python | numpy.isnat() method With the help of numpy.isnat() method, we can get the boolean value as true if date defined in a np.datetime64() method is not a time by using numpy.isnat() method. Syntax : numpy.isnat() Return : Return the boolean value if time is not found. Example #1 : In this example we can see that by using nu 1 min read Python | numpy.isnat() method With the help of numpy.isnat() method, we can get the boolean value as true if date defined in a np.datetime64() method is not a time by using numpy.isnat() method. Syntax : numpy.isnat() Return : Return the boolean value if time is not found. Example #1 : In this example we can see that by using nu 1 min read Python datetime module In Python, date and time are not data types of their own, but a module named DateTime in Python can be imported to work with the date as well as time. Python Datetime module comes built into Python, so there is no need to install it externally. In this article, we will explore How DateTime in Python 14 min read Python datetime module In Python, date and time are not data types of their own, but a module named DateTime in Python can be imported to work with the date as well as time. Python Datetime module comes built into Python, so there is no need to install it externally. In this article, we will explore How DateTime in Python 14 min read Python datetime module In Python, date and time are not data types of their own, but a module named DateTime in Python can be imported to work with the date as well as time. Python Datetime module comes built into Python, so there is no need to install it externally. In this article, we will explore How DateTime in Python 14 min read Python | time.asctime() method Python time method time.asctime() is used to convert a tuple or a time.struct_time object representing a time as returned by time.gmtime() or time.localtime() method to a string of the following form: Day Mon Date Hour:Min:Sec Year For example: Thu 08 22 10:46:56 2019Python time asctime() Syntax: ti 3 min read Like