+ 2

Are there any way to print the current day or month in C??

We can print the full time and date easily. Code example>>> https://code.sololearn.com/c48hlIR8vb3A/#c But how to print only the current day or month???

6th Feb 2020, 11:03 AM
ISTIAQUE ZAMAN
ISTIAQUE ZAMAN - avatar
3 Antworten
+ 6
Use search in code section {}. You will find enough examples. https://code.sololearn.com/cTmNfPysVZq3/?ref=app
6th Feb 2020, 11:08 AM
Mihai Apostol
Mihai Apostol - avatar
+ 3
In the code you have attached if you use (tm_wday) then it will give you the current day of the week(1-7).
6th Feb 2020, 11:18 AM
Arsenic
Arsenic - avatar
+ 3
Thanks Arsenic and Mihai Apostol to help ...
8th Feb 2020, 10:00 AM
ISTIAQUE ZAMAN
ISTIAQUE ZAMAN - avatar