Formatting a date.

A

Alexey

Hi I am trying to format the current date into mmm-yy format

i have been trying Format((Today),"mmm-yy"), but clearly that is wrong. can
anyone help please?

tks

Z
 
A

Allen Browne

Try:
=Format(Date(),"mmm-yy")

Of course, the output of Format() is text, so you will get text sorting
(April before January), and can't match it against dates.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top