diff --git a/public/mix-manifest.json b/public/mix-manifest.json index ae44050..717de42 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -1,6 +1,6 @@ { - "/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=4a97d3cd44ce20271b16", - "/js/vue/Home/app.js": "/js/vue/Home/app.js?id=0fc1eb446e4231363537", - "/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=2419a17ce1593f647b46", - "/js/vue/User/app.js": "/js/vue/User/app.js?id=5032dd9ac7897eeb6f48" + "/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=2b4f3436fcb49f78c9c1", + "/js/vue/Home/app.js": "/js/vue/Home/app.js?id=b862f7cc12c7a4ce6f0b", + "/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=3c04f8df626054f9e154", + "/js/vue/User/app.js": "/js/vue/User/app.js?id=0252a20649e51965e2e6" } diff --git a/resources/js/Global/utils/date/jalali-date.js b/resources/js/Global/utils/date/jalali-date.js new file mode 100644 index 0000000..9859ad1 --- /dev/null +++ b/resources/js/Global/utils/date/jalali-date.js @@ -0,0 +1,9 @@ +import moment from "jalali-moment"; + +const convertToJalali = function (date = null, format = "jYYYY/jMM/jDD", defaultDate = 'مشخص نشده است.' ) { + return date ? moment(date).format(format) : defaultDate ; +} +const convertNowToJalali = function (date = null, format = "jYYYY/jMM/jDD" ) { + return date ? moment(date).format(format) : moment(new Date()).format(format) ; +} +export { convertToJalali, convertNowToJalali }; \ No newline at end of file