Moment.js logo

Moment.js

Published January 2018
   •    Updated this week

Plugin details

Uses moment.js to: 1. Convert Unix Timestamps into normal dates
2. Display a date and time relative to the current time.  More features coming soon

Free

For everyone

stars   •   0 ratings
705 installs  
This plugin may track or collect your data. Learn how.

Other actions

Platform

Web

Contributor details

Supernaturally logo
Supernaturally
Joined 2016   •   1 Plugin
View contributor profile

Instructions

FOR CONVERTING UNIX TIMESTAMPS: 1. Drag the "UnixTime Converter element on to your Bubble page. Keep it visible.
2. Define the Unix TimeStamp that you want to convert (ex. from an API call, an input, etc.)
3. That's it!

FOR RELATIVE TIME:
1. Drag the "Relative Time" element on to your Bubble page. Keep it visible (it doesn't actually show up in view mode).
2. In the Properties pane, specify a value in the 'Date' property. This is the date and time you wish to compare to the current date and time. It can be a database date field, e.g. Comment's Creation date. It can also be the value of a date input.
3. Optionally specify a refresh interval in milliseconds. If you leave blank, the relative time will refresh when a related field or value changes or when the page is reloaded. If you do specify a value, the relative time will be auto-refreshed at the frequency you specify. Use with caution as refreshing too frequently may hinder performance or have unexpected consequences.
4. Add a Text element to your page to display the relative time and specify its value as the "current value" of the Relative Time element you added in step 1. You may want to add some static text too, e.g. 'Posted' to get an output like "Posted a minute ago".

NOTES
- You can refer to the Relative Time's current value in a workflow.
- You can add multiple instances to your page or use it in a Repeating Group.

Data collection and tracking

This author has not yet disclosed their data usage policy. Learn more by contacting the author.

Types

This plugin can be found under the following types:

Categories

This plugin can be found under the following categories:

Resources

Support contact
Documentation

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble