How to get the Current Date in ReactNative?

The JavaScript runtime in React Native has access to date information just like any other environment. As such, simply:

new Date()

… will give you the current date. Here’s the MDN on working with dates in JS.

If you want a good JS library to make working with dates even easier, check out MomentJS.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)