Skip to content

Instantly share code, notes, and snippets.

View Octagon-simon's full-sized avatar
Turning red flags into red tests that pass.

Simon Ugorji (Octagon) Octagon-simon

Turning red flags into red tests that pass.
View GitHub Profile
function findNotifDate(date_notified = "2021-11-05 15:00:00") {
/**
* @ findNotifDate : Finds the Date Difference of a Notification
* @ date_notified : The notification date
**/
const date_sent_tmp = new Date(date_notified);
//Check for timestamps
if(date_notified.indexOf('-') != -1){
var date_sent = date_sent_tmp.getTime();
function findNotifDate(date_notified = "2021-11-05 15:00:00") {
/**
* @ findNotifDate : Finds the Date Difference of a Notification
* @ date_notified : The notification date
**/
const date_sent_tmp = new Date(date_notified);
//Check for timestamps
if(date_notified.indexOf('-') != -1){
var date_sent = date_sent_tmp.getTime();
function findNotifDate(date_notified = "2021-11-05 15:00:00") {
/**
* @ findNotifDate : Finds the Date Difference of a Notification
* @ date_notified : The notification date
**/
const date_sent_tmp = new Date(date_notified);
//Check for timestamps
if(date_notified.indexOf('-') != -1){
var date_sent = date_sent_tmp.getTime();
function findNotifDate(date_notified = "2021-11-05 15:00:00") {
/**
* @ findNotifDate : Finds the Date Difference of a Notification
* @ date_notified : The notification date
**/
const date_sent_tmp = new Date(date_notified);
//Check for timestamps
if(date_notified.indexOf('-') != -1){
var date_sent = date_sent_tmp.getTime();
const dt =new Date();
console.log(dt.getMonth());
function findNotifDate(date_notified = "2021-11-05 15:00:00") {
/**
* @ findNotifDate : Finds the Date Difference of a Notification
* @ date_notified : The notification date
**/
const date_sent_tmp = new Date(date_notified);
//Check for timestamps
if(date_notified.indexOf('-') != -1){
var date_sent = date_sent_tmp.getTime();
function findNotifDate(date_notified = "2021-11-05 15:00:00") {
/**
* @ findNotifDate : Finds the Date Difference of a Notification
* @ date_notified : The notification date
**/
const date_sent_tmp = new Date(date_notified);
//Check for timestamps
if(date_notified.indexOf('-') != -1){
var date_sent = date_sent_tmp.getTime();
function findNotifDate(date_notified = "2021-11-05 15:00:00") {
/**
* @ findNotifDate : Finds the Date Difference of a Notification
* @ date_notified : The notification date
**/
const date_sent_tmp = new Date(date_notified);
//Check for timestamps
if(date_notified.indexOf('-') != -1){
var date_sent = date_sent_tmp.getTime();
function findNotifDate(date_notified = "2021-11-05 15:00:00") {
/**
* @ findNotifDate : Finds the Date Difference of a Notification
* @ date_notified : The notification date
**/
const date_sent_tmp = new Date(date_notified);
//Check for timestamps
if(date_notified.indexOf('-') != -1){
var date_sent = date_sent_tmp.getTime();
function findNotifDate(date_notified = "2021-11-05 15:00:00") {
/**
* @ findNotifDate : Finds the Date Difference of a Notification
* @ date_notified : The notification date
**/
const date_sent_tmp = new Date(date_notified);
//Check for timestamps
if(date_notified.indexOf('-') != -1){
var date_sent = date_sent_tmp.getTime();