Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to input dates in python

import datetime
time_str = input("enter time in this format yyyy-mm-dd")
time=datetime.datetime.strptime(time_str, "%Y-%m-%d")
Comment

how to take date as input in python

date = input("Enter date: 
 >> ")
 //input
 >> 22/4/2022
print(date)
 //output
 >> 22/4/2022
Comment

PREVIOUS NEXT
Code Example
Python :: str replace python regex 
Python :: filter dict 
Python :: group multiple columns in pandas 
Python :: python ordereddict 
Python :: python datetime compare date 
Python :: how to sort dict by value 
Python :: pandas remove time from date 
Python :: compare dates python 
Python :: python async partial function 
Python :: 3d array into 2d array python 
Python :: how to make gtts text to speech converter 
Python :: import ImageGrab 
Python :: scatter matrix plot 
Python :: python split lines 
Python :: disbale tkinter textbox 
Python :: python dataclass 
Python :: php datatables serverside 
Python :: check if number in range python 
Python :: python equals override 
Python :: continue vs pass python 
Python :: relative import in python 
Python :: plt get colors in range 
Python :: Generate 3 random integers between 100 and 999 which is divisible by 5 
Python :: # find out indexes of element in the list 
Python :: python autocorrelation plot 
Python :: machine learning python 
Python :: numpy declare arraylength 
Python :: add to a list python 
Python :: python script that executes at time 
Python :: hash() python 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =