Python Program to get Day/Month/Year

Rajnilari2015
Posted by Rajnilari2015 under Python category on | Points: 40 | Views : 263
from System import *

class Program(object):
def Main(args):
dayMonthYear = DateTime.Now.ToString("dd/MM/yyyy")
Console.WriteLine("Day/Month/Year : {0}", dayMonthYear)
Console.ReadKey()

Main = staticmethod(Main)


Result
------

Day/Month/Year : 18/08/2016

Comments or Responses

Login to post response