tjzerrer Posted February 1, 2015 Share Posted February 1, 2015 I'm trying to create an online calculator for my students to estimate a grade for their work on Khan Academy, but I'm having one main issue: How can I have the user enter a date and convert that date to a number? Thank you. Link to comment Share on other sites More sharing options...
davej Posted February 2, 2015 Share Posted February 2, 2015 HTML5 is introducing a date input but the browser support isn't real yet, so you can use datepickers that have been written, or you can use a dropdown list. http://w3schools.invisionzone.com/index.php?showtopic=52128&hl=date The milliseconds since 1970 is a useful format for a date... http://www.w3schools.com/jsref/jsref_gettime.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now