Skip to content

Instantly share code, notes, and snippets.

View mohxmd's full-sized avatar
:electron:
Never give up

Mohammed mohxmd

:electron:
Never give up
View GitHub Profile
@mohxmd
mohxmd / theme.js
Created May 13, 2023 03:15
recat-native-constants
const COLORS = {
primary: "#312651",
secondary: "#444262",
tertiary: "#FF7754",
gray: "#83829A",
gray2: "#C1C0C8",
white: "#F3F4F8",
lightWhite: "#FAFAFC",
@mohxmd
mohxmd / date.js
Last active May 13, 2023 02:52
Get Current Date in JavaScript | dd/mm/yyyy Formate Date
let today = new Date()
let day = `${today.getDate() < 10 ? '0' : ''} ${today.getDate()}`
// month are counted from 0
let month = `${(today.getMonth() + 1) < 10 ? '0' : ''} ${today.getMonth()}`
let year = today.getFullYear()
console.log(`Current Date: ${day}/${month}/${year}`);