Answers for "input type datetime-local format dd-mm-yyyy"

1

format dd mm yyyy for input date

<!DOCTYPE html> 
<html> 

<head> 
	<title> 
		How to get input type date 
		in dd-mm-yyyy format ? 
	</title> 
	
	<style> 
		body { 
			text-align: center; 
		} 
		h1 { 
			color: green; 
		} 
	</style> 
</head> 

<body> 
	<h1>Student Tutorial</h1> 
	
	<h3> 
		Get input date in 
		dd-mm-yyyy format 
	</h3> 
	
	<label for="start"> 
		Enter the Date: 
	</label> 

	<input type="date" name="begin"
		placeholder="dd-mm-yyyy" value=""
		min="1997-01-01" max="2030-12-31"> 
</body> 

</html>
Posted by: Guest on May-13-2021
1

html datetime-local format dd/mm/yyyy

<!--in input form we can set date format in dd/mm/yyyy using placeholder-->
<input type="date" placeholder="dd/mm/yyyy"> <!--use form tag currectly for see the changes-->
Posted by: Guest on April-18-2021

Code answers related to "input type datetime-local format dd-mm-yyyy"

Browse Popular Code Answers by Language