change date format?

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

change date format?

#1

Postby t4nu » Mon Jan 11, 2016 9:28 am

Hi,
Is there a way to change the date format that displayed when date input is required?
Thanks in advance for the help.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Mon Jan 11, 2016 11:29 am

The format of date fields is controlled by the language the form is running with, or more accurately the formatting language associated with the running language. The idea is that you can have multiple users using different languages and the dates are displayed appropriately. You can change the language, but you probably don't want to do this. Other than that, you can't use a field of type DATE and change the display format e.g. you can't change it to 11th Jan 2016. You could change the field type to CHAR and then display the date any way you like, but then it couldn't be used as an input field. The only other solution would be to use something like jQuery, but would be much more work.
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#3

Postby t4nu » Thu Jan 14, 2016 10:39 pm

Hi Jon,
thanks for the information.
It's not what I want, but at least I know the reason.
Jon wrote:The format of date fields is controlled by the language the form is running with, or more accurately the formatting language associated with the running language. The idea is that you can have multiple users using different languages and the dates are displayed appropriately. You can change the language, but you probably don't want to do this. Other than that, you can't use a field of type DATE and change the display format e.g. you can't change it to 11th Jan 2016. You could change the field type to CHAR and then display the date any way you like, but then it couldn't be used as an input field. The only other solution would be to use something like jQuery, but would be much more work.
0 x


Who is online

Users browsing this forum: No registered users and 22 guests