#DatePickerInput display value in UTC

1 messages ยท Page 1 of 1 (latest)

winter sinew
#

check dayjs docs for that

misty steeple
#

Well I know that dayjs can let me change timezones and stuff. But what i was wondering here was having the datepickerinput component show the value on the input as UTC

#

I am able to get the value itself in UTC. But the datepicker component is showing that time in the local timezone and I want to show it in UTC ๐Ÿค” hopefully im making sense

#

Im thinking is my only option to create a DatePicker with my own custom Input component?

misty steeple
#

So i figured i can pass the value as Dayjs.dayjs instead of turning into a toDate() and that helps me show the time in UTC but it breaks sometimes and causes an error

#

Becsuse calendar only acceptd type Date