Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Dates

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 4th, 2019, 07:02 PM
Naval Naval is offline
Junior Community Member
 
Join Date: Oct 2015
Location: New Zealand
Posts: 40
Smile Date format

Hi there,
I am doing a template and require date field to auto populate in the following format "23 January 2019"
Can someone please help me with a JS rule for this please.


Thanks in Advance
Naval
Reply With Quote
  #2  
Old February 5th, 2019, 02:38 PM
kjacobson's Avatar
kjacobson kjacobson is offline
Junior Community Member
 
Join Date: Oct 2008
Location: Alameda, CA
Posts: 49
Default Re: Date format

If you need today's date use:
Code:
return FormatDate(new Date(), "d lm yyyy");
If you are using a date from a field use:
Code:
return FormatDate(Field("Date"), "d lm yyyy");
__________________
Windows 7 | InDesign CC 2017 | Acrobat DC 2019 | FusionPro 10.1.9
Reply With Quote
  #3  
Old February 7th, 2019, 10:49 AM
Naval Naval is offline
Junior Community Member
 
Join Date: Oct 2015
Location: New Zealand
Posts: 40
Default Re: Date format

Awesome thank you so much. This works like a treat.
Reply With Quote
Reply

Tags
date format

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:04 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.