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
業(yè)精于勤,荒于嬉;行成于思,毀于隨。
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