I wanted to know how to get current date and time and what datatype should i use to store it in websql, sorry for being such a noob…
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could create a
Dateobject and store the numeric value of the date as the number of milliseconds since January 1, 1970, 00:00:00 UTC (negative for prior times).Storing the milliseconds will allow you to read and parse however you like later. Its worth mentioning to check out date.js and moment.js