Date Destruct missing or invalid

hello ,
i am using lightweight chart library for date but it is unable to fetch the date format the lightweight date format requires as ‘YYYY-MM-DD’ only while upstox provide - YYYY-MM-DD HH-MM-SS and timezone.
will u guide me from which react library i can fetch date and mathc to lightweight library or can i use upstox candle chart TbT.
please give response as early as possible.
@Pradeep_Jaiswar @shanmu

The format provided by Upstox is compatible with well-known libraries such as Trading View and ChartIQ.

If you require the date format to be in YYYY-MM-DD, you will need to make adjustments on your side to achieve this format.