![]() ![]() |
Reference Type: Supported, Category: Date Functions, ICR#: 10103
The $$FMTE^XLFDT extrinsic function converts a VA FileMan formatted input date to an external formatted date.
$$FMTE^XLFDT(x[,y])
x: |
(required) VA FileMan date. |
y: |
(optional) Affects output as follows:
|
returns: |
Returns the xternal formatted date. |
Return the date in the following format: Standard VA FileMan date format.
>S X=$$FMTE^XLFDT(2940629.105744,1) >W X Jun 29, 1994@10:57:44 |
Return the date in the following format: Standard VA FileMan date format and include am/pm.
>S X=$$FMTE^XLFDT(2940629.1057,"1P") >W X Jun 29, 1994 10:57 am |
Return the date in the following format: MM/DD/YY@HH:MM:SS.
>S X=$$FMTE^XLFDT(2940629.105744,2) >W X 6/29/94@10:57:44 |
Return the date in the following format: MM/DD/YY@HH:MM.
>S X=$$FMTE^XLFDT(2940629.105744,"2M") >W X 6/29/94@10:57 |
Return the date in the following format: MM/DD/YY@HH:MM and include am/pm.
>S X=$$FMTE^XLFDT(2940629.105744,"2P") >W X 6/29/94@10:57:44 am |
Return the date in the following format: MM/DD/YY@HH:MM:SS, forcing seconds to display when no seconds were included in the input parameter.
>S X=$$FMTE^XLFDT(2940629.1057,"2S") >W X 6/29/94@10:57:00 |
Return the date in the following format: MM/DD/YY@HH:MM:SS, forcing seconds to display when no seconds were included in the input parameter, and include leading spaces.
>S X=$$FMTE^XLFDT(2940629.1057,"2SF") >W X 6/29/94@10:57:00 |
Return the date in the following format: DD/MM/YY@HH:MM:SS and include leading spaces.
>S X=$$FMTE^XLFDT(2940629.105744,"3F") >W X 29/ 6/94@10:57:44 |
Return the date in the following format: YY/MM/DD, ignore the time values entered and only display the date.
>S X=$$FMTE^XLFDT(2940629.1057,"4D") >W X 94/6/29 |
To output a really short date/time try the following, convert space to zero and remove slash, as shown below:
>S X=$TR($$FMTE^XLFDT(2940629.1057,"4F")," /","0") >W X 940629@10:57 |
Return the date in the following format: MM/DD/YYYY@HH:MM:SS.
>S X=$$FMTE^XLFDT(3000229.110520,5) >W X 2/29/2000@11:05:20 |
Return the date in the following format: MM/DD/YYYY@HH:MM:SS and include leading spaces.
>S X=$$FMTE^XLFDT(3000229.110520,"5F") >W X 2/29/2000@11:05:20 |
Return the date in the following format: MM/DD/YYYY@HH:MM:SS, forcing seconds.
>S X=$$FMTE^XLFDT(3000229.1105,"5S") >W X 2/29/2000@11:05:00 |
Return the date in the following format: MM/DD/YYYY@HH:MM:SS, include leading zeroes, and include am/pm.
>S X=$$FMTE^XLFDT(3000229.110520,"5ZP") >W X 02/29/2000 11:05:20 am |
Return the date in the following format: DD/MM/YYYY@HH:MM:SS, with leading spaces.
>S X=$$FMTE^XLFDT(3000229.110520,"6F") >W X 29/ 2/2000@11:05:20 |
Return the date in the following format: DD/MM/YYYY@HH:MM:SS, with leading zeroes.
>S X=$$FMTE^XLFDT(3000229.1105,"6Z") >W X 29/02/2000@11:05 |
Return the date in the following format: YYYY/MM/DD@HH:MM:SS.
>S X=$$FMTE^XLFDT(3000301.1105,7) >W X 2000/3/1@11:05 |
Return the date in the following format: YYYY/MM/DD, ignore the time values entered and only display the date.
>S X=$$FMTE^XLFDT(3000301.1105,"7D") >W X 2000/3/1 |