project BLF > class Business Component > method DisplayDate

function returns character

Description

Converts a date into a displayable value
(taking into consideration the clients date setting and ignoring all server date settings like -d or -yy)


Parameters


itDateinputdatedate to display


Internal usage


BLF
method database.GetXmlRepresentationDataset
method database.ReadTable
method BReportRequest.DataLoadByInput
method breport.ApiGetReportStructure
method breport.ApiProcessReportLogic
method breport.GetReportLabels

QadFinancials
method BAPMatching.ValidateComponentPostAPM1
method BAPMatching.ValidateComponentPostAPMLn2
method BBankEntry.ValidateComponentPost
method BBudget.AdditionalUpdValBudgetWBSItemRoster
method BCDocument.ValidateComponentPost
method BCInvoice.ValidateCInvoiceMovementCrossCy
method BCInvoice.ValidateComponentPost
method BCInvoice.ValidateComponentPostDueDate
method BCInvoice.ValidateComponentPostMovement
method BDDocument.ValidateComponentPost
method BDInvoice.CreateDInvoiceMovementsCrossCyVal
method BDInvoice.ValidateComponentAllMovement
method BDInvoice.ValidateComponentAllPostPostingDate
method BDInvoice.ValidateInvoiceDate
method BDInvoice.ValidateTaxPointDate
method BEmployee.ValGeneral
method BExchangeRate.ValidateComponent
method BPosting.ValidateComponentPostPosting1
method BPosting.ValidateComponentPostPosting2
method BPosting.ValidateComponentPostPostingLine1
method BPosting.ValidateComponentPreAssignPosting1
method BPosting.ValidateComponentPreAssignPostingVat
method BJournalEntry.ApiSetPostingStatusChange
method BPaymentSelection.ValidateComponentPost1
method BPeriod.AdditionalUpdates
method BRecurringEntry.AdditionalUpdates
method BRecurringEntry.GenerateCalendar
method BReportPeriod.AdditionalUpdates
method BVAT.ApiGetPercentageFormula
method BWithholdingTax.ValidateComponentPost


program code (program1/business.p)

if itDate = ?
then return vcFcDateFormat.

if length(vcFcDateFormat,"character") = 4
then vcSeparator = substring(vcFcDateFormat,4,1,"character").
else vcSeparator = "/".

return <M-13 DisplayDateFormat
          (input  itDate (itDate), 
           input  substring(vcFcDateFormat,1,1,'character') (icFormat)) in business>
     + vcSeparator
     + <M-65 DisplayDateFormat
          (input  itDate (itDate), 
           input  substring(vcFcDateFormat,2,1,'character') (icFormat)) in business>
     + vcSeparator
     + <M-91 DisplayDateFormat
          (input  itDate (itDate), 
           input  substring(vcFcDateFormat,3,1,'character') (icFormat)) in business>.