Can you tell me what determines the date datetime display format in Formspider?

Thanks, Michiel

asked 11 Jan '13, 07:46

Michiel%20A's gravatar image

Michiel A
accept rate: 13%

Hi Michiel,

The default dateformat is DD-MM-YYYY HH24:MI:SS. You may change the default dateformat in BDF_SETUP table by changing the value of "DefaultDatasourceDateFormat" named parameter in the table.



answered 11 Jan '13, 07:58

Samet%20Basaran's gravatar image

Samet Basaran
accept rate: 24%

Thanks Samet,

So there will be no way of setting it per user (as session property or someting)?

(11 Jan '13, 08:07) Michiel A

Yes, unfortunately you cannot set it using any API at the moment.

(11 Jan '13, 08:12) Samet Basaran

Hi Michiel,
Maybe there is a "hack" you can use. First rename table bdf_setup to bdf_setup$:
rename bdf_setup to bdf_setup$;
Then create a view to manipulate the returned data the way you want it. A very very simple example follows: create or replace view bdf_setup as selecr var_cd, bdf_setup_oid, decode(var_cd, 'DefaultDatasourceDateFormat', decode(put_your_critera_here, 'value_1', 'DD/MM/YYYY', 'value_2', 'MM/DD/YYYY', ...... value_tx --default formspider value ), value_tx ) value_tx from bdf_setup$

I have not tested the code, but I used the same concept many times.



answered 14 Jan '13, 04:05

Vlisidis%20Akis's gravatar image

Vlisidis Akis
accept rate: 5%

Hi Akis,

Thanks, interesting idea. I'm gonna give it a try.


(14 Jan '13, 05:02) Michiel A
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 11 Jan '13, 07:46

Seen: 2,669 times

Last updated: 14 Jan '13, 05:02

© Copyright Gerger 2017