I want to print only without time. with datetime as variable. Please check the screenshot below


i dont want to change my variable to string.
is there any way to print only date without time or 00:00:00.

Hi,

DateTime type is Struct. It always has Year, Month, Day, Hour, Minute and Second.

Regards,

Hi @Bhagyaraj_Digumarthi

We can try with function!

Now.ToString(“dd-MM-yyyy”)

Regards

Ok thankyou

But then, I have to change the variable to string.
But I want keep the variable at DateTime only and print Date Only.
Is it possible?

Hi @Bhagyaraj_Digumarthi

Please refer to the screen shot below!

Regards

1 Like

Thankyou so much

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.