hi,
php have thi svery nice function
strtoime()

int strtotime ( string $time [, int $now ] )
The function expects to be given a string containing an English date format and will try to parse that format into a Unix timestamp (the number of seconds since January 1 1970 00:00:00 UTC), relative to the timestamp given in now, or the current time if now is not supplied.

http://php.net/manual/en/function.strtotime.php

i was wondering if we have any similar function in C# also..

>php's strtotime() alternate for C#

Nope! But use the type DateTime and its method.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.