Skip to Content
author's profile photo Former Member
Former Member

Date in PDF's

Hi

How do I put the full date in a PDF Generated. I have a date field but when I do the preview it doesn't show the date!

I need the date in spanish

thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 17, 2010 at 12:48 AM

    Hi,

    I dont see any spanish format in ADLC, do you mean to say th month and days in spanish language.

    The below is the how I do it ..it gives format of.

    Friday, 17 December 2010.

     
     var monthWord=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
     var dayWord = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
     var dateType=new Date();
     var day=dateType.getDate();
     var month=dateType.getMonth();
     var year=dateType.getFullYear();
     var weekDay = dateType.getDay();
     var dateFormat= dayWord[weekDay]+", "+day+" "+monthWord[month]+" "+year;
    
     this.rawValue = dateFormat;
    

    cheers,

    Sai

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.