28
Views
4
Comments
Datepicker value is not showing in mobile view
Question
Application Type
Reactive

1. I use datepicker on my input to format the date by MMM DD, YYYY.
- The value is showing in desktop view

- but it wasn't showing up when i turn the screen into mobile view

- I add Time format, then it finally show up

but the problem is i don't need the time in this input. when im disabling time format the value doesnt show up.
is there anyway to format date MMM dd, yyyy (example: Jan 31, 1999)
is there a way to fix it?

UserImage.jpg
Md Mansur

Hi Jehu Ombrog

It's working without setting any date Format 

Or You can change Your Date to any Date Format During one Selected Event using 

FormatDateTime(,) Funation



2019-11-11 17-10-24
Manish Jawla
 
MVP

Hi @Jehu Ombrog ,

Please refer the below screenshot: I have added the date format which you need in your date input field but no need to select any option for time format and it's working for all the devices.

I have attached the sample oml for your reference.

Regards,

Manish jawla

DatpickerAnswer.oml
2022-11-18 10-27-30
Jehu Ombrog

hello @Manish Jawlai have tried it again using my personal envi.
I default date value so that after screen rendering the input must already have data. 

1. the value is showing in desktop view

2. but when i turn the screen into mobile view and refresh the screen. it value disappears and it has a console error like this.

I have resolved the issue by really opening the web application thru mobile smartphones. In Safari its working and chrome idk with the other browsers. 
it just that it don't really work on web mobile view immulator. Lesson learn don't trust mobile view dev tools. I wasted my time debugging this, but it turns out it works fine on a real cellphone. 

2026-01-23 11-38-55
Dinesh Murugan
Champion

Hi @Manish Jawla ,

Thanks for sharing. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.