Print Page | Close Window

Date

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: JavaScript
Forum Description: Discussions relating to the use of JavaScript within PDF.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=1377
Printed Date: 17 Sep 2019 at 9:48am
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Date
Posted By: khloro
Subject: Date
Date Posted: 16 Dec 2014 at 6:19pm
Currently I am using this java script on a custom stamp

event.value = util.printd('d-mmm-yyyy', new Date());

Which gives me date-Month-year

What would be the correct script to have it in spanish! HAHA!

It would read then

8-dic-2014



Replies:
Posted By: gkaiseril
Date Posted: 16 Dec 2014 at 8:25pm
Change the language for the product or the OS to EspaƱol.
 
But I think it would get the capitalization correct.


Posted By: try67
Date Posted: 18 Dec 2014 at 2:41pm
You can use this code to specify the Spanish localized date strings:
util.printd("date(es){D-MMM-YYYY}", new Date(), true);



-------------
- Acrobat Expert - Contact me personally at try6767@gmail.com
Check out my custom-made scripts website: http://try67.blogspot.com



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net