DateTime QUESTION

Hi,

The path I am looking to save a document to is formatted 9.September - so month year and name.

What is the format for this, is it MM.MMMM ?

Hey!

Try this:

Now.ToString("M.MMMM")

The above mentioned format will give you the 9.September Format

Where M → 9
MM ->09
MMM ->Sep
MMMM->September

Regards,
NaNi

we do understand that your request is about filename construction.
Also we do understand the request about the Month and year part.
Lets assume this year sample date 9th September
We can do:
DateTimeVar.ToString(“MM.yyyy”)
grafik

And for sure we can take control of the returned format in the to string
d - day
dd- day 2 digit
yyyy - 4 digit year
and so on

Also we would recommend to work with the String.Format method like
grafik

as we can construct the filename more readable with the statements

Let us know your open Question