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..

Recommended Answers

>php's strtotime() alternate for C#

Nope! But use the type DateTime and its method.

Jump to Post

All 2 Replies

>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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.