How to use the g function from firebase-admin
Find comprehensive JavaScript firebase-admin.g code examples handpicked from public code repositorys.
240 241 242 243 244 245 246 247 248 249
case 'DD/MM/YYYY': // e.g. 30/11/2022 (ref: https://momentjs.com/docs/#/displaying/format/) value = value.toLocaleDateString(); break; case 'date-hour-minute': // e.g. Wednesday, 30 November, 2022 at 13:00 value = `${value.toLocaleDateString('en-GB', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' })} at ${value.toLocaleTimeString('en-GB', { hour: '2-digit', minute:'2-digit', hour12: false })}`; break; default: value = toDateString(value);
1
2
1
+ 15 other calls in file
firebase-admin.firestore is the most popular function in firebase-admin (560 examples)