• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Three letter date in System Variable?

New Here ,
Feb 28, 2024 Feb 28, 2024

Copy link to clipboard

Copied

In FM2022 - I am currently using the following definition in a System Variable:

<$monthname> <$daynum>, <$year>

 

Which displays as: February 28, 2024

 

What I want is: Feb 28, 2024

 

Ideas? 

Views

118

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 29, 2024 Feb 29, 2024

What System Variable? And what are you getting instead?

In FM2020, I just inserted system variable Modification Date (Short) in a Body para,

edited it to:
<$shortmonthname> <$daynum>, <$year>
and got
Feb 29, 2024

 

Votes

Translate

Translate
Community Expert ,
Feb 28, 2024 Feb 28, 2024

Copy link to clipboard

Copied

<$shortmonthname> ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 29, 2024 Feb 29, 2024

Copy link to clipboard

Copied

That's what I thought, as well - doesn't work - 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 29, 2024 Feb 29, 2024

Copy link to clipboard

Copied

What System Variable? And what are you getting instead?

In FM2020, I just inserted system variable Modification Date (Short) in a Body para,

edited it to:
<$shortmonthname> <$daynum>, <$year>
and got
Feb 29, 2024

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 29, 2024 Feb 29, 2024

Copy link to clipboard

Copied

Thanks! that worked!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 03, 2024 Mar 03, 2024

Copy link to clipboard

Copied

LATEST

re: <$shortmonthname> <$daynum>, <$year>

Because future searches are apt to stumble across this thread, I might add that a very common misperception with date-oriented Variables is due to the Building Blocks elements only being available for System Variables. That BB menu is not present when creating or editing a user Variable.

People do try to type/paste them into user Variable definitions, but they just get rendered as plain text.

The problem is that the System Variables have access to {hidden} operating-system supplied data objects, for which the BBs control the presentation. User Variables are defined only by their Definition dialog field, which is just text, FM special characters, \x or \u codepoints, and any applied Character Format. It might be useful if a Var def could accept expressions, other $Vars, etc., but FM hasn't supported that yet.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines