JavaScript is the only way to get the clients date and time.

<script type="text/javascript">
var localTime = new Date();
//switch statement here.
</script>

On Mon, Jan 5, 2009 at 6:24 AM, CK <[email protected]> wrote:
>
> I think this will use local time at the server....
>
> On 26 Dec 2008, 07:42, "Brandon Betances" <[email protected]> wrote:
>> DateTime.Now.ToLocalTime();
>>
>>
>>
>> On Fri, Dec 26, 2008 at 2:26 AM, Sunil yadav <[email protected]> wrote:
>>
>> > Thank you for giving suggestion but exact problem is that what will be
>> > time format which I have to check in condition.
>>
>> > On 12/26/08, Brandon Betances <[email protected]> wrote:
>>
>> >> I just answered your question.
>>
>> >> On Fri, Dec 26, 2008 at 1:52 AM, Sunil yadav <[email protected]>
>> >> wrote:
>>
>> >>> hi,
>>
>> >>> I am using asp.net web form with C#  in following problem :
>>
>> >>> How can I display a greeting (good morning, good evening and
>> >>> good...)that is depend on the timing of user's system) for user ?
>>
>> >>> On 12/26/08, Brandon Betances <[email protected]> wrote:
>>
>> >>>> I believe the first line of his post had ASP.NET in it.
>>
>> >>>> On Fri, Dec 26, 2008 at 1:16 AM,  <[email protected]> wrote:
>>
>> >>>>> are you using web forms or  windows forms?
>>
>> >>>>> --- Original Message ---
>> >>>>> From:"Sunil yadav" <[email protected]>
>> >>>>> Sent:Thu 12/25/08  11:12 pm
>> >>>>> To:[email protected]
>> >>>>> Subj:[DotNetDevelopment] How can I dispaly........
>>
>> >>>>> Hello everyone,
>>
>> >>>>> I am sunil. currently I am learning ASP.NET so could you help me in
>> >>>>> the following problem -
>>
>> >>>>> How can I display a greeting (good morning, good evening and good...
>> >>>>> that is depend on the timing of user's system) for user ?
>>
>> >>>>> Please let me know if you have any idea .
>>
>> >>>>> Thank you,- Hide quoted text -
>>
>> - Show quoted text -

Reply via email to