Compare commits
No commits in common. "814c17d4c90bee178578bd622cc6d1e3683c8638" and "d00d4ac69201d03576e702d9bae1c5dca44b7282" have entirely different histories.
814c17d4c9
...
d00d4ac692
1 changed files with 1 additions and 9 deletions
|
|
@ -1252,15 +1252,7 @@ export const useCounterMixin = defineStore("mixin", () => {
|
|||
|
||||
// กรณีมีเฉพาะ date
|
||||
function convertDateToAPI(date: Date | null) {
|
||||
if (!date) return null;
|
||||
|
||||
const parsedDate = new Date(date);
|
||||
|
||||
if (parsedDate) {
|
||||
return format(parsedDate, "yyyy-MM-dd");
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
return date ? format(date, "yyyy-MM-dd") : null;
|
||||
}
|
||||
|
||||
// กรณี datetime
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue