Date Query

The date should be the end of the current month but format should be in mmm-yy format and at the end of the month it should give previous month in mmm-yy format. What is the linq query for it.

Hi @anjani_priya

Try this

Datee = (If(Now.Day = 1, Now.AddMonths(-1), Now).ToString("MMM-yy"))

Regards,

1 Like

@anjani_priya,

Can you explain the requirement with an example please?

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