Clock Component Displays Error

Hello,
I am Creating an Algorithm that if 1 month is over then the subscription must get cancelled, so to detect it I am using clock component. The Following Error shows up :

The operation FormatDateTime cannot accept the arguments: , [java.util.GregorianCalendar[time=?,areFieldsSet=false,areAllFieldsSet=true,lenient=true,zone=libcore.util.ZoneInfo[mDstSavings=0,mUseDst=false,mDelegate=[id=“Asia/Kolkata”,mRawOffset=19800000,mEarliestRawOffset=21208000,transitions=7]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2024,MONTH=0,WEEK_OF_YEAR=52,WEEK_OF_MONTH=5,DAY_OF_MONTH=26,DAY_OF_YEAR=360,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=4,AM_PM=1,HOUR=1,HOUR_OF_DAY=13,MINUTE=58,SECOND=23,MILLISECOND=996,ZONE_OFFSET=19800000,DST_OFFSET=0]], [dd/MM/yyyy]

Blocks:

You can’t store instants in TinyDB, store millis instead
Taifun

and how to convert milis into instant

Check the methods of the clock component

Taifun

no worries I am saving the formatted date itself in the tinyDB as Text. so I think it will be fine

Thank You Everyone for your time and efforts. I found my solution :+1:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.