new ReadableDate().toDateTime({Date Object}, {padding option true/false})
new ReadableDate().toDateTime(new Date(), true)
new ReadableDate().toDateTime(new Date(), false)
new ReadableDate().toDate(new Date(), true)
new ReadableDate().toTime(new Date())
new ReadableDate().toSQLDateTime(new Date())
new ReadableDate().toSQLDate(new Date())
const ReadableDate = require('./ReadableDateTime.js')console.log("toDateTime (with pad): "+new ReadableDate().toDateTime(new Date(), true)) //Result: toDateTime (with pad): 25/07/2024 14:44:13
console.log("toDateTime (without pad): "+new ReadableDate().toDateTime(new Date(), false)) //Result: toDateTime (without pad): 25/7/2024 14:44:13
console.log("toDate (with pad): "+new ReadableDate().toDate(new Date(), true)) //Result: toDate (with pad): 25/07/2024
console.log("toTime: "+new ReadableDate().toTime(new Date())) //Result: toDate (with pad): 14:44:13
console.log("toSQLDateTime: "+new ReadableDate().toSQLDateTime(new Date())) //Result: toSQLDateTime: 2024-07-25 14:44:13
console.log("toSQLDate: "+new ReadableDate().toSQLDate(new Date())) //Result: toSQLDate: 2024-07-25