Date Format 31st January 2019

omyvadiyaomyvadiya Member Posts: 124
edited 2019-03-04 in NAV Three Tier
Hi,
I have a Custom Datetime field(Datatype is Datetime) in Sales Invoice Header table in Nav 2016, i have bifurcated date and time by below code in a custom report, i am getting the Result as
Date 31 12:48:49.457 PM

Code:
InvDate := COPYSTR(FORMAT("Invoice Date Time"),1,8);
InvTime := COPYSTR(FORMAT("Invoice Date Time"),9,16);

I want the InvDate in 31st January 2019 Format, how can it be done??

I have tried changing the format property to 31-January-2019 in RDLC report, it isn't working

Best Answer

  • omyvadiyaomyvadiya Member Posts: 124
    Answer ✓
    I got the solution simply by changing the format in the RDLC->Textbox Property of the field->Date->31-Jan-00, instead of bifurcating by using copystr . ;)

Answers

  • omyvadiyaomyvadiya Member Posts: 124
    Answer ✓
    I got the solution simply by changing the format in the RDLC->Textbox Property of the field->Date->31-Jan-00, instead of bifurcating by using copystr . ;)
Sign In or Register to comment.