Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 112
Registered: ‎05-20-2011
My Device: 9800
My Carrier: Developer

how to change date picker formate in blackberry web works?

i am developing a blackberry web works application i need ti develop a date picker,i used this code to develop but it gave me 'yyyy-mm-dd' format but i need 'dd-mm-yyyy' format please help me this is my code 

 


    <input type="date" name="from_date" id="from_date" placeholder=" Select Date " >

 

 thank you

Developer
Posts: 588
Registered: ‎05-29-2009
My Device: 9100

Re: how to change date picker formate in blackberry web works?

I am trying to do the same. Hopefully someone can help us.
Developer
Posts: 588
Registered: ‎05-29-2009
My Device: 9100

Re: how to change date picker formate in blackberry web works?

Does anyone know if this is possible? or should i make one more extension for it?

New Developer
Posts: 8
Registered: ‎04-22-2015
My Device: 9220
My Carrier: developer

Re: how to change date picker formate in blackberry web works?

i did it by using javascript all you need is just recut the date

 

var selectedDate = document.getElementById('date').value;

var finalDate = c.split('-')[2] + "-" + c.split('-')[1] + "-" + c.split('-')[0];