Home › Forums › Multi-Edit › Support › Changing the date format the <CDATE> template metacomm
- This topic has 3 replies, 1,915 voices, and was last updated 16 years, 1 month ago by Clay Martin.
-
AuthorPosts
-
March 21, 2005 at 11:44 am #1480GraemeParticipant
Hi,
I am trying to use the template metacommand <CDATE> to expand the current date.
I am trying to get the format of date to be dd/mm/yyyy and it is coming out as mm/dd/yyyy.
Is there any way of changing the date format?
Thanks,
Graeme
March 21, 2005 at 4:14 pm #5372Clay MartinKeymasterI did a search on CDATE in the help file, here is what I found:
Substitutes the current date. The <CDate> Metacommands allow for passing an optional format string. To specify a format string, use the following format.
<CDate format string>
Examples:
<CDATE dd’-‘MMM’-‘yy> would insert the date as 27-Jan-99
See table below for all of the valid format string values.
Format String
Functiond
Day of month as digits with no leading zero for single-digit days.dd
Day of month as digits with leading zero for single-digit daysddd
Day of week as a three-letter abbreviation. The function uses the LOCALE_SABBREVDAYNAME value associated with the specified locale.dddd
Day of week as its full name. The function uses the LOCALE_SDAYNAME value associated with the specified locale.M
Month as digits with no leading zero for single-digit months.MM
Month as digits with leading zero for single-digit months.MMM
Month as a three-letter abbreviation. The function uses the LOCALE_SABBREVMONTHNAME value associated with the specified locale.MMMM
Month as its full name. The function uses the LOCALE_SMONTHNAME value associated with the specified locale.y
Year as last two digits, but with no leading zero for years less than 10.yy
Year as last two digits, but with leading zero for years less than 10.yyyy
Year represented by full four digitsgg
Period/era string. The function uses the CAL_SERASTRING value associated with the specified locale. This element is ignored if the date to be formatted does not have an associated era or period string.h
Hours with no leading zero for single-digit hours; 12-hour clockhh
Hours with leading zero for single-digit hours; 12-hour clockH
Hours with no leading zero for single-digit hours; 24-hour clockHH
Hours with leading zero for single-digit hours; 24-hour clockm
Minutes with no leading zero for single-digit minutesmm
Minutes with leading zero for single-digit minutess
Seconds with no leading zero for single-digit secondsss
Seconds with leading zero for single-digit secondsT
One character time marker string, such as A or Ptt
Multicharacter time marker string, such as AM or PMHTH,
ClayMarch 22, 2005 at 8:04 am #5373GraemeParticipantThanks,
That is great.
I did a search on the help and jut found the raw list of tags and a very short description.
Was this in the standard ME9.0.3 distribution?
Cheers,
Graeme
March 22, 2005 at 1:42 pm #5374Clay MartinKeymaster -
AuthorPosts
- You must be logged in to reply to this topic.