4 Replies - 217 Views - Last Post: 16 August 2012 - 11:58 PM Rate Topic: -----

#1 John11  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 49
  • Joined: 17-March 12

How to apply user-defined date and time to an application ?

Posted 16 August 2012 - 05:10 AM

Hello, I have an application that I made on VB.NET 2010 with SQL SERVER 2008, I only have one problem:
The store that my application is managing closes at 2:00AM and not at 12:00PM so I don't want the day to switch at 12:00PM but to switch at 2:00AM to the day after.

Is there any way to do that?

I hope I'm making myself clear...

Thank you
Is This A Good Question/Topic? 0
  • +

Replies To: How to apply user-defined date and time to an application ?

#2 b2.f2  Icon User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 76
  • Joined: 21-May 07

Re: How to apply user-defined date and time to an application ?

Posted 16 August 2012 - 05:19 AM

View PostJohn11, on 16 August 2012 - 06:10 AM, said:

I hope I'm making myself clear...


not at all.
post codes where what is going on that you want to change...

you could use the 24 date format
Was This Post Helpful? 0
  • +
  • -

#3 John11  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 49
  • Joined: 17-March 12

Re: How to apply user-defined date and time to an application ?

Posted 16 August 2012 - 05:28 AM

ok I knew I wasn't cleat at all so let me rephrase..
I have a Datetimepicker where the user chooses a date, I want to know how to set the value of the datimetimepicker's date to today and its hour to 2:00AM.

Thank you
Was This Post Helpful? 0
  • +
  • -

#4 b2.f2  Icon User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 76
  • Joined: 21-May 07

Re: How to apply user-defined date and time to an application ?

Posted 16 August 2012 - 05:46 AM

 DateTimePicker1.Value = New DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 2, 30, 0)



where 2h 30m 0s
Was This Post Helpful? 0
  • +
  • -

#5 John11  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 49
  • Joined: 17-March 12

Re: How to apply user-defined date and time to an application ?

Posted 16 August 2012 - 11:58 PM

Problem solved, thank you!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1