Convert Datetime to Date

@ManjunathReddy

Try this and it will give you the required output

Regards

you can see my below variables and their values

image

I have to apply A date “2023-07-14” in database query through parameter in Date format.

@ManjunathReddy

So in your db the date format is as you specified with hyphen?ideally just a conversion should be enough

Please check this

Cheers

Hey, @ManjunathReddy
image

Date.Today.ToString(“yyyy/MM/dd”)

u can use this :), it works!

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