Page 1 of 1

Date format in template

PostPosted:Thu Nov 22, 2012 8:28 am
by bc_santana
Hi
I managed to create a template from PDF & assigned a property group to it
when using it & filling the property group details it shows the date format as a long date with time
date.png
date.png (2.2 KiB) Viewed 5641 times
in the property group it shows 21-11-2012

i would like to show the same format within the created template if possible

also as you can see the time is not correct it always shows 00:00:00 AST

i tried to define the date format on pdf but it didn't make any difference

kindly advice on this matter

this is my settings
okm Version: 6.2.1 (build: 7659)
locale en-GB
template created using acrobat pro

Re: Date format in template

PostPosted:Wed Nov 28, 2012 12:52 pm
by pavila
Can you attach the template ?

Re: Date format in template

PostPosted:Thu Nov 29, 2012 6:05 am
by bc_santana
I have attached a test form made for consulting property group
also tested it at the demo okm site with the same result

i have noticed also that the checkbox value is not reflected on the template

kindly check that too

thanx

Re: Date format in template

PostPosted:Sun Dec 02, 2012 10:09 am
by bc_santana
managed to solve the checkbox issue
i had to change the export value in the properties to true
now its reflecting on the template

still can't figure out how to set the date format :(

Re: Date format in template

PostPosted:Sat Dec 15, 2012 1:17 pm
by pavila
The property date format only stores the date but not the time. I'm not sure if also should store the time or create a new input type called timestamp (or so) which stores date and time.

Comments are welcome.

Re: Date format in template

PostPosted:Sun Dec 16, 2012 11:11 am
by bc_santana
thanks for the reply

actually i dont need the time ..

all i want to do is to show the date in the pdf template with this format dd/mm/yyyy (or any date only format)
but it shows like this
Wed Nov 21 00:00:00 AST 2012

thanks again

Re: Date format in template

PostPosted:Sat Dec 22, 2012 4:39 pm
by pavila

Re: Date format in template

PostPosted:Sat Dec 22, 2012 4:54 pm
by pavila
I've thinking a little about this and have doubts. Which date patter should be used when filling the template? The most obvious answer is to use the pattern provide by the user language, but an OpenKM instance may be used by users with different language and date patterns.

Re: Date format in template

PostPosted:Wed Dec 26, 2012 10:34 am
by bc_santana
Thank you very much for the support
much appreciated ^___^

Re: Date format in template

PostPosted:Mon Dec 31, 2012 9:46 am
by pavila
According to http://wiki.openkm.com/index.php/Creating_PDF_templates you can now define date format in templates.

Re: Date format in template

PostPosted:Sat Jan 05, 2013 6:46 am
by bc_santana
thank you :)
its working now