πππππππππππππSet-Upππππππππππππππ
We have detailed video tutorials for each of the actions/elements we have in this plugin. Watch them to understand and use it at ease.
There is no special set-up required to use this plugin. Just install and use it.
ππππππππππInstalling the Pluginππππππππππ
β Log in to your Bubble account
β Go to Plugins
β Search for βCountry, Date & Time by Ritz7β
β Install the plugin
πππππππππππUsing the Pluginπππππππππππ
ππ Elements ππ
β½ TimeZone: This element when added will fetch the timezone of the current user. Bubble gives us the current user's timezone but only to be used within bubble's operation. You cannot send the current user's timezone via API using the in-built method. This element gives you the timezone in text format like "Asia/Kolkata", which can be sent via API or stored in the database for using from the backend.
βΈ Watch Youtube video here:
https://www.youtube.com/watch?v=CQCcuS45e8cππ Actions ππ
β½ Country Info By Country Code:
β Inputs:
β» Country Code: A 2 digit text code. Ex: IN for India, or US for USA
β Outputs:
β» Country name
β» Capital
β» Continent
β» ISD code
β» Currency code/s (can be a list)
β» Timezone/s (can be a list)
β½ Country Info By Country Name:
β Inputs:
β» Country Name: The full name of the country. Ex: India, United States
β Outputs:
β» Country Code
β» Capital
β» Continent
β» ISD code
β» Currency code/s (can be a list)
β» Timezone/s (can be a list)
β½ Country Info By Timezone:
β Inputs:
β» Timezone: The time-zone in text format. The timezone can either be added manually, or from the database or from the element available in the plugin "TimeZone". Ex: Asia/Kolkata, America/Los_Angeles.
β Outputs:
β» Country Code
β» Country Name
β» Capital
β» Continent
β» ISD code
β» Currency code/s (can be a list)
βΈ Watch the video for all these three actions here:
https://www.youtube.com/watch?v=CQCcuS45e8cππ Note: In short, we can fetch all the details of the current user without the user inputting any detailsππ
β½ get Currency Exchage Value:
β Inputs:
β» From Currency: This should be one of the currency codes like INR, USD, JPY.
β» To Currency: Similarly, this should be one of the currency codes like INR, USD, JPY.
β Outputs:
β» Exchange Rate: This fetches the real time exchange rates between the two currencies mentioned in the inputs.
βΈ Watch the video for all these three actions here:
https://www.youtube.com/watch?v=AsVCV9zdRXc β½ Date+Time:
β Inputs:
β» Date Value: This is a date & time field from which the plugin will consider only the date aspect of it.
β» Time Value: This is a date & time field from which the plugin will consider only the time aspect of it.
β» Time Zone: The time-zone in text format. The timezone can either be added manually, or from the database or from the element available in the plugin "TimeZone". Ex: Asia/Kolkata, America/Los_Angeles.
β Outputs:
β» formated_dateTime: This will be the date (from date field) + time (from time field)
Note: This can be performed within bubble, but in bubble you will have to do something like date1->change hours to date2's extract hours-> change minutes to date2's extract minutes... We have done that easier.
βΈ Watch the video for all these three actions here:
https://www.youtube.com/watch?v=AsVCV9zdRXcβ½ get Time Duration In Words:
β Inputs:
β» Date: This is the date & time field which will be used for calculating the time difference between the current date & time with the input date and time. It could be a past or a future date & time.
β» Time Zone: The time-zone in text format. The timezone can either be added manually, or from the database or from the element available in the plugin "TimeZone". Ex: Asia/Kolkata, America/Los_Angeles.
β Outputs:
β» Time Duration in Words: The output will be in terms of time duration in words, like 'a few mins ago', '2 days ago', 'next year', '2 months later' and so on.
βΈ Watch the video for all these three actions here:
https://www.youtube.com/watch?v=AsVCV9zdRXcβ½ get Date Info:
β Inputs:
β» Date: This is a date & time field which considers only the date aspect of it.
β» week Starts from Monday?: yes/no field. Make it as 'yes' if you want Monday to be considered as the first day of the week.
β Outputs:
β» first Day Of Week: First day of the week in which the input date falls.
β» last Day Of Week: Last day of the week in which the input date falls.
β» last Day Of Month: Last day of the month in which the input date falls.
βΈ Watch the video for all these three actions here:
https://www.youtube.com/watch?v=AsVCV9zdRXcβ½ get Due Date:
β Inputs:
β» Start Date: This is a date & time field.
β» Working Days: 0- non-working day, 1- working day. Starts from Sun,Mon,Tue,Wed,Thu,Fri,Sat. So, if Monday to Friday is working the value to send will be 0,1,1,1,1,1,0.
β» days To Add: Just a number. If you want to add 3 days, send 3. Keep in mind, we are considering the start date as one of the days. So, this is not equivalent to StartDate + days (3). Of course, this is true only if Start date falls under the working day.
β» Holidays: List of holidays that should not be counted as working day even if it falls during the working days of the week. This could be declared holidays or so. It's a text field which takes list of dates separated by comma in the following format: 'yyyy-mm-dd'. Check the demo page to see how this works.
β» Time Zone: The time-zone in text format. The timezone can either be added manually, or from the database or from the element available in the plugin "TimeZone". Ex: Asia/Kolkata, America/Los_Angeles.
β Outputs:
β» End Date: The due date.
βΈ Watch the video for all these three actions here:
https://www.youtube.com/watch?v=mAMtxlllbOAβ½ getWorkingDaysCount:
β Inputs:
β» Start Date: This is a date & time field.
β» End Date: This is a date & time field.
β» Working Days: 0- non-working day, 1- working day. Starts from Sun,Mon,Tue,Wed,Thu,Fri,Sat. So, if Monday to Friday is working the value to send will be 0,1,1,1,1,1,0.
β» Holidays: List of holidays that should not be counted as working day even if it falls during the working days of the week. This could be declared holidays or so. It's a text field which takes list of dates separated by comma in the following format: 'yyyy-mm-dd'. Check the demo page to see how this works.
β» Time Zone: The time-zone in text format. The timezone can either be added manually, or from the database or from the element available in the plugin "TimeZone". Ex: Asia/Kolkata, America/Los_Angeles.
β Outputs:
β» Days: This is the opposite 'get Due Date'. Here we give the Start Date and the End Date to calculate the number of working days with the list of working days and holidays.
βΈ Watch the video for all these three actions here:
https://www.youtube.com/watch?v=mAMtxlllbOAβ½ Get Time Intervals:
β Inputs:
β» Interval Value: the duration in number. Ex. 30 (for 30 minutes). Always greater than 0. Watch video explaination to understand this field better.
β» Interval Unit: unit of interval, like seconds, minutes etc.
β» Increment Value: the duration in number. Ex. 30 (for 30 minutes). Always greater than 0. Watch video explaination to understand this field better.
β» Increment Unit: unit of increment, like seconds, minutes etc.
β» Time Zone: The time-zone in text format. The timezone can either be added manually, or from the database or from the element available in the plugin "TimeZone". Ex: Asia/Kolkata, America/Los_Angeles.
β» Input Date Ranges: You can send multiple date-time range and the system will take care of giving you all the possible intervals within all the ranges you send. Note: To cater the timezone issue, we are dealing in unix format. Hence please send the range in the following format: startDateTime in unix->endDateTime in unix. Watch the video in the plugin instruction or visit plugin demo page for details on how to send data.
β» busySlots: This can be left blank. But if you want to remove the unavailable slots/days in between the available ranges, you can send the busy range in this field. This is similar to 'Input Date Ranges' field and needs to be formatted in the same format. You can send multiple date-time range. Note: To cater the timezone issue, we are dealing in unix format. Hence please send the range in the following format: startDate in unix->endDate in unix. Watch the video in the plugin instruction or visit plugin demo page for details on how to send data.
β Outputs:
β» Available Slots: The list of slots (dateTime) in the timezone given in the action.
βΈ Watch the video for all these three actions here:
https://www.youtube.com/watch?v=VenyEdAG1sE