javascript - Is there a function in jq that converts timestamp to date? It is not the kind written by myself, it is jq itself.
迷茫2017-05-19 10:37:39
0
5
641
Asking a very simple question, is there a function in jq that converts timestamps into dates? It is not the kind I wrote myself, it is encapsulated by jq itself.
If not, I will convert it directly in php, but I still want to know if there is
js itself has new Date (timestamp), which creates a new date object in js. This object has getDate, getMonth, getFullYear and other methods to get the year, month and day. Please refer to the document for details: https://developer.mozilla.org ...
I deliberately searched the jquery source code. I did not get the date format function directly. I need to manually combine it. jq added a $.now() to get the timestamp.
It seems there is none. It’s all handled by myself
js itself has new Date (timestamp), which creates a new date object in js. This object has getDate, getMonth, getFullYear and other methods to get the year, month and day. Please refer to the document for details: https://developer.mozilla.org ...
Note that the timestamp of js is in milliseconds
I deliberately searched the jquery source code. I did not get the date format function directly. I need to manually combine it. jq added a $.now() to get the timestamp.
jQuery-ui has a dataPicker plug-in to obtain time and configure the time output format