GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Date formats in Reports

Click to view RSS...
Author
Posted Saturday, August 23, 2008 - Post #22427
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Forum Members
GenoPro version: 2.0.1.5

Last Login: Wednesday, July 8, 2009
Posts: 2, Visits: 8
WRT to Descendants Report (MS Word) how do i change the birth dates etc from the format

Nov 30th, 1891 to simply the dmy format 30/11/1891

Thanks in anticipation

R
Posted Saturday, August 23, 2008 - Post #22428
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, October 28, 2025
Posts: 4,886, Visits: 22,799
In the file Dictionary.xml, you can customize the date format:

<DateFormatting>
  <!--
  The node <DateFormatting> is optional.  In this section, you can specify formatting options to display dates, including
  the calendar and language.
  If you wish the date formatting from the control panel, remove/comment the nodes <Months>, <Weekdays>, <Digits> and <FmtDateDefault>.
  At the moment, there are only five supported calendars: Gregorian, Julian, Hebrew, Korean and Thai.
  -->
  <Calendar>Gregorian</Calendar>
  <Months>
   <!-- Use the attribute "S" for short months and weekdays -->
   <Jan S="Jan">January</Jan>
   <Feb>February</Feb>
   <Mar>March</Mar>
   <Apr>April</Apr>
   <May>May</May>
   <Jun>June</Jun>
   <Jul>July</Jul>
   <Aug>August</Aug>
   <Sep>September</Sep>
   <Oct>October</Oct>
   <Nov>November</Nov>
   <Dec>December</Dec>
   <Sol></Sol> <!-- Sol is the 13th month, depending on the calendar used -->
  </Months>
  <Weekdays FirstDay="1">  <!-- 1=Sun, 2=Mon 7=Sat etc. -->
   <Sun>Sunday</Sun>
   <Mon S="Mon">Monday</Mon>
   <Tue>Tuesday</Tue>
   <Wed>Wednesday</Wed>
   <Thu>Thursday</Thu>
   <Fri>Friday</Fri>
   <Sat>Saturday</Sat>
  </Weekdays>
  <Digits>0123456789</Digits>
 
  <!--
  Date Formatting Options:
   d = day in numerical format
   D = day with rank (1st, 2nd, 3rd, ... 31st)
   DD = day ordinal (first, second third, ... thirty-first)
   DDD = day cardinal (one, two, three, ... thirty-one)
   [ ] = display a date prefix (exact date, approximate date, before or after)
  GenoPro uses the standard date formatting options from the .NET framework.
  -->
  <FmtDateDefault>
   <!-- Default date formatting templates -->
   <FmtYMD>[|~|&lt;|&gt;]MMM D, yyyy</FmtYMD>  <!-- Jan 31st, 2006 -->
   <FmtYM>[|~|&lt;|&gt;]MMM yyyy</FmtYM>   <!-- Jan 2006 -->
   <FmtY>[|~|&lt;|&gt;]yyyy</FmtY>    <!-- 2006 -->
   <FmtMD>[|~|&lt;|&gt;]MMM D</FmtMD>   <!-- Jan 31st -->
  </FmtDateDefault>
  <FmtDateNarrative>
   <!-- Templates to format narrative dates -->
   <FmtYMD>&#32;[on|about|before|after] MMMM D, yyyy</FmtYMD>    <!-- He was born on January 31st, 2006 -->
   <FmtYM>&#32;[in|about|before|after] MMMM yyyy</FmtYM>   <!-- He was born in January 2006 -->
   <FmtY>&#32;[in|about|before|after] yyyy</FmtY>    <!-- He was born in 2006 -->
   <FmtMD>&#32;[on|about|before|after] MMMM D</FmtMD>   <!-- He was born on January 31st -->
  </FmtDateNarrative>

  <!-- Short and long date formats are only taken if day month and year are known, otherwise the default date format is used -->
  <!-- date.ToString("d") -->
  <FmtDateShort>[|~|&lt;|&gt;]yyyy-MM-dd</FmtDateShort>    <!-- 2006-01-31 -->
  <!-- date.ToString("D") -->
  <FmtDateLong>[|about |before |after ]dddd, MMMM D, yyyy</FmtDateLong>   <!-- Monday, January 31st, 2006 -->

  <FmtDateRange>
   <FmtSinceYMD>from [|about |before |after ]MMMM D, yyyy</FmtSinceYMD>
   <FmtSinceYM>from [|about |before |after ]MMMM yyyy</FmtSinceYM>
   <FmtSinceY>from [|about |before |after ]yyyy</FmtSinceY>
   <FmtSinceMD>from [|about |before |after ]MMMM D</FmtSinceMD>
   <FmtUntilYMD>until [|about |before| after] MMMM D, yyyy</FmtUntilYMD>
   <FmtUntilYM>until [|about |before |after ]MMMM yyyy</FmtUntilYM>
   <FmtUntilY>until [|about |before |after ]yyyy</FmtUntilY>
   <FmtUntilMD>until [|about |before |after ]MMMM D</FmtUntilMD>
   <FmtFromYMD>from [|about |before |after ]MMMM D, yyyy</FmtFromYMD>
   <FmtFromYM>from [|about |before |after ]MMMM yyyy</FmtFromYM>
   <FmtFromY>from [|about |before |after ]yyyy</FmtFromY>
   <FmtFromMD>from [|about |before |after ]MMMM D</FmtFromMD>
   <FmtToYMD>to [|about |before| after] MMMM D, yyyy</FmtToYMD>
   <FmtToYM>to [|about |before |after ]MMMM yyyy</FmtToYM>
   <FmtToY>to [|about |before |after ]yyyy</FmtToY>
   <FmtToMD>to [|about |before |after ]MMMM D</FmtToMD>
   <FmtFromAndTo>{0} {1}</FmtFromAndTo>

   <!-- e.g. French version, replace above with the following (after correcting my Google-based translations!) :
   <FmtDateRange>
    <FmtSinceYMD>[à partir du|aux environs du|avant le|après le] d MMMM yyyy</FmtSinceYMD>
    <FmtSinceYM>[à partir de|aux environs de|avant|après] MMMM yyyy</FmtSinceYM>
    <FmtSinceY>[à partir de|aux environs de|avant|après] yyyy</FmtSinceY>
    <FmtSinceMD>[à partir du|aux environs du|avant le|après le] d MMMM</FmtSinceMD>
    <FmtUntilYMD>[jusqu'au|jusqu'aux environs du|jusqu'avant le|jusqu'àprès le] d MMMM yyyy</FmtUntilYMD>
    <FmtUntilYM>[jusqu'en|jusqu'aux environs de|jusqu'avant|jusqu'après] MMMM yyyy</FmtUntilYM>
    <FmtUntilY>[jusqu'en|jusqu'aux environs de|jusqu'avant|jusqu'après] yyyy</FmtUntilY>
    <FmtUntilMD>[jusqu'en|jusqu'aux environs du|jusqu'avant|jusqu'àprès] d MMMM</FmtUntilMD>
    <FmtFromYMD>[du|d'environ du|d'avant le|d'après le] d MMMM yyyy</FmtFromYMD>
    <FmtFromYM>[de|d'environ|d'avant|d'après] MMMM yyyy</FmtFromYM>
    <FmtFromY>[de|d'environ|d'avant|d'après] yyyy</FmtFromY>
    <FmtFromMD>[du|d'environ du|d'avant le|d'après le] d MMMM</FmtFromMD>
    <FmtToYMD>[au|aux environs du|à avant le|à après le] d MMMM yyyy</FmtToYMD>
    <FmtToYM>[à|aux environs de|à avant|à après] MMMM yyyy</FmtToYM>
    <FmtToY>[à|aux environs de|à avant|à après] yyyy</FmtToY>
    <FmtToMD>[au|aux environs du|à avant le|à après le]d MMMM</FmtToMD>
    <FmtFromAndTo>{0} {1}</FmtFromAndTo>
   </FmtDateRange>
   -->
  </FmtDateRange>
  <FmtTimeSpan>
   <!--
   Duration Formatting Options:
    {}  Output the value in numeric format (1, 2, 3, ...)
    {N}  Output the value in narrative cardinal (one, two, three, ...)   
   -->
   <FmtYear>{N} year</FmtYear>
   <FmtYears>{N} years</FmtYears>
   <FmtMonth>{N} month</FmtMonth>
   <FmtMonths>{N} months</FmtMonths>
   <FmtDay>{N} day</FmtDay>
   <FmtDays>{N} days</FmtDays>
   <FmtYMD>{0}, {1} and {2}</FmtYMD>   <!-- two years, six months and twelve days -->
   <FmtYM>{0} and {1}</FmtYM>    <!-- one year and four months -->
   <FmtMD>{0} and {1}</FmtMD>    <!-- nine months and one day -->
  </FmtTimeSpan>
 </DateFormatting>

Posted Saturday, August 23, 2008 - Post #22429
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Forum Members
GenoPro version: 2.0.1.5

Last Login: Wednesday, July 8, 2009
Posts: 2, Visits: 8
Ok thanks

I have made some tentative small changes and can see what is happening.
A bit more work to complete in all situations Smile

R


Edited: Saturday, August 23, 2008 by Robuste


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse