Responsive Date Format

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets

Responsive Date Format

Postby Mark A Johnson on Wed Dec 18, 2019 2:17 pm

I have a release notes project that includes release notes for many different products. We are going to add the date of the release to each release note entry. The audience includes users from the U.S. and Europe. The writing team needs to decide on the format of the date.

Question: Is there any way to include a date that can respond to the browser's location? For example, we would like to change "Dec 18, 2019" to "18 Dec, 2019" when viewed in Europe.

Any advice greatly appreciated.

Mark A Johnson
Propeller Head
Posts: 11
Joined: Mon Jan 21, 2013 9:49 am

Re: Responsive Date Format

Postby bunnycat on Thu Dec 19, 2019 8:33 am

For each target, you could define a DateTimeVariable in its variable sets.
Unfortunately, it's not going to be actually responsive to the country, but you could use the DateTimeVariable in each output to give that target its own specific date and time formatting.

I use the DateTimeVariable all over the place in my different outputs - I use it as "topic was last updated on <date>" for TopNav help topics, and on front covers of PDFs, for when they were built last. Is very handy :)

EDIT - oops, you wanted browser response to the Date time format. Maybe if you create different outputs for US vs Europe, you could use the DateVariable, and then conditionalize its use somehow?!? Not entirely sure if you can do that sort of detection out of the box with Flare or if it would need some custom javascript. I'm guessing... sorry.

MadCap Flare help ... iables.htm? - had a note about Date Time variables and operating systems in different languages and their targets, (English vs French was the example) but not necessarily just browsers.

"System variables use the language set in a tag, in the target, or at the project level. For example, you might have an English operating system, but in a Flare target you have French set as the language. If you insert a date/time variable, the day and month will display in French when you generate that target. Flare will also adjust the format of the variable if necessary (e.g., date first vs. month first)."

Hope this helps a little

Propeller Head
Posts: 62
Joined: Tue Nov 03, 2015 6:44 am

Return to Web-based Outputs

Who is online

Users browsing this forum: No registered users and 13 guests