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
4 Replies - 217 Views - Last Post: 16 August 2012 - 11:58 PM
#1
How to apply user-defined date and time to an application ?
Posted 16 August 2012 - 05:10 AM
Replies To: How to apply user-defined date and time to an application ?
#2
Re: How to apply user-defined date and time to an application ?
Posted 16 August 2012 - 05:19 AM
#3
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
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
#4
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
#5
Re: How to apply user-defined date and time to an application ?
Posted 16 August 2012 - 11:58 PM
Problem solved, thank you!
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|