This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getDate() { | |
return new Date(new Date().toLocaleString('en', {timeZone: 'Asia/Kuala_Lumpur'})) | |
} | |
function formatTelephone(telephone) { | |
if (telephone.startsWith("+6")) { | |
return telephone.substring(1); | |
} else if (telephone.startsWith("0")) { | |
return "6" + telephone; | |
} else if (telephone.startsWith("5")) { // +65 singapore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8=D~ |