Hi all,
I would like to send daily record and give title as yyyy-mm-dd daily report.
But if I use DateTime.Today.ToString then it shows like yyyy-mm-dd 00:00:00
How can I erase that 00:00:00?
Please help
Hi all,
I would like to send daily record and give title as yyyy-mm-dd daily report.
But if I use DateTime.Today.ToString then it shows like yyyy-mm-dd 00:00:00
How can I erase that 00:00:00?
Please help
Please use Today.ToString("yyyy-MM-dd")
you can specify any format you need and the output would be according to it
cheers
Today.ToString("yyyy-MM-dd") will remove that time values from the output.