convert date to month

C

christos

I am trying to convert date to month value, but I do not know how. any help
thank you
 
A

Arvi Laanemets

Hi

With date (p.e. TODAY()) in cell, format it as custom
1) "mm" - 05 is returned
2) "m" - 5 is returned
3) "mmm" - "May" is returned
4) "mmmm" - also "May" is returned, but there will be difference with p.e.
"January" vs. "Jan"
Formulas:
=MONTH(TODAY()) - 5 is returned, or 05 is returned when cell with
formula is formatted as "00"
=TEXT(TODAY,"m") - "5" is returned
=TEXT(TODAY,"mm") - "05" is returned
=TEXT(TODAY,"mmm") - "May" is returned
=TEXT(TODAY,"mmmm") - "May" is returned
 

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