supportsvc
Technical User
There's a field with 6 characters in which the last 4 are the month and date (mmdd)
Looks like this for instance, today, the batch number is 000809
I need to convert that into a date so I've attempt the following:
Format(Right([Batch Number], 4), "mm/dd/" & "2018" in order to achieve 08/09/2018
However it is producing incorrect dates based on the Batch Number
So then I've tried in 2 steps
First Right([Batch Number],4) as InvoiceDate
Then Format([InvoiceDate], "mm/dd/" & "2018")
This produces the same incorrect dates.
Example: It should produce 01/07/2018
SalesOrderNo ImprintID InvoiceNo Batch Number InvoiceDate Expr1
A525894 93890372 A54490 00107 [highlight #FCE94F]0107[/highlight] 04/16/2018
Looks like this for instance, today, the batch number is 000809
I need to convert that into a date so I've attempt the following:
Format(Right([Batch Number], 4), "mm/dd/" & "2018" in order to achieve 08/09/2018
However it is producing incorrect dates based on the Batch Number
So then I've tried in 2 steps
First Right([Batch Number],4) as InvoiceDate
Then Format([InvoiceDate], "mm/dd/" & "2018")
This produces the same incorrect dates.
Example: It should produce 01/07/2018
SalesOrderNo ImprintID InvoiceNo Batch Number InvoiceDate Expr1
A525894 93890372 A54490 00107 [highlight #FCE94F]0107[/highlight] 04/16/2018