Hi,

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
5161541
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.

Regards

link

answered 11 Jan '13, 07:58

Samet%20Basaran's gravatar image

Samet Basaran
1372
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.

Akis

link

answered 14 Jan '13, 04:05

Vlisidis%20Akis's gravatar image

Vlisidis Akis
163119
accept rate: 5%

Hi Akis,

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

Michiel

(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

By RSS:

Answers

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

Tags:

×7
×7

Asked: 11 Jan '13, 07:46

Seen: 1,401 times

Last updated: 14 Jan '13, 05:02


© Copyright Gerger 2017