I don't know any Czech, so this is pure guesswork.
The datetime2-serbian module provides Latin month names and Cyrillic month names with an option to switch between them. The datetime2-usorbian module provides new style month names and old style month names with an option to switch between them. It sounds as though you're looking for a similar function, so I'll use a similar method here to that employed by those language modules. If this isn't correct, please add some examples of usage to your question.
In datetime2-czech-utf8.ldf, replace
\newcommand*{\DTMczechmonthname}[1]{%
\ifcase#1
\or
ledna%
\or
února%
\or
března%
\or
dubna%
\or
května%
\or
června%
\or
července%
\or
srpna%
\or
září%
\or
října%
\or
listopadu%
\or
prosince%
\fi
}
with
\newcommand*{\DTMczechgenitivemonthname}[1]{%
\ifcase#1
\or
ledna%
\or
února%
\or
března%
\or
dubna%
\or
května%
\or
června%
\or
července%
\or
srpna%
\or
září%
\or
října%
\or
listopadu%
\or
prosince%
\fi
}
\newcommand*{\DTMczechmonthname}{\DTMczechgenitivemonthname}% default
\newcommand*{\DTMczechnominativemonthname}[1]{%
\ifcase#1
\or
nominative version of ledna%
\or
nominative version of února%
\or
nominative version of března%
\or
nominative version of dubna%
\or
nominative version of května%
\or
nominative version of června%
\or
nominative version of července%
\or
nominative version of srpna%
\or
nominative version of září%
\or
nominative version of října%
\or
nominative version of listopadu%
\or
nominative version of prosince%
\fi
}
Add similar code for the other cases that are required. Similarly for the first letter upper case \DTMczechMonthname.
Do the same thing in datetime2-czech-ascii.ldf but replace the UTF-8 characters with LaTeX commands. (The -utf8.ldf file is used by XeLaTeX and LuaLaTeX. The -ascii.ldf file is used by LaTeX.)
Then in datetime2-czech.ldf in the block that defines the module options (commands like \DTMdefbool and \DTMdefkey) add the following:
\DTMdefchoicekey{czech}{month}[\val\nr]{genitive,nominative}{%
\ifcase\nr\relax
\renewcommand*\DTMczechmonthname{\DTMczechgenitivemonthname}%
\renewcommand*\DTMczechMonthname{\DTMczechgenitiveMonthname}%
\or
\renewcommand*\DTMczechmonthname{\DTMczechnominativemonthname}%
\renewcommand*\DTMczechMonthname{\DTMczechnominativeMonthname}%
\fi
}
Similarly add the extra cases that you require.
With these changes, in your document you should be able to switch between the different cases using \DTMlangsetup. For example:
\DTMlangsetup[czech]{month=genitive}
\DTMMonthname{1}, with a capital M? – Runar Sep 06 '16 at 17:12<case>option in sugegsted\foocommand... Thanks for your suggestions anyway. – Crowley Sep 06 '16 at 17:47datetime2-czechis unmaintained and probably always has been unmaintained. Therefore, the support for Czech is going to be pretty generic and minimal. The problem in finding a maintainer is likely to be that it needs somebody who can understanddatetime2and not just somebody with knowledge of Czech. I tried to understanddatetime2and failed. Hence, I'm usingdatetimewith a corrected set of language definitions for my language. (Neitherdatetimenordatetime2use correct translations of basic things as the original Babel was wrong.) – cfr Sep 06 '16 at 20:45