Click here to Skip to main content
16,004,820 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
here i have a ypload option. in which i have to upoad photos and etc. so i have to insert date onwhich the photo is upload into a databae and also want to display on screen.

how to do this with asp.net using vb
Posted

1 solution

when upload photo

Dim dt as string
dt=Format(DateAdd(DateInterval.Hour, 5, DateAdd(DateInterval.Minute, 30, Date.UtcNow)), "dd/MM/yyyy")

and when do insert before run this query
set dateformat 'dmy'
 
Share this answer
 
v2
Comments
mahi0607 12-Mar-13 5:54am    
thanks a lot
Devang Vaja 12-Mar-13 6:16am    
Your Welcome..!!!:) Mahi Ji
Shubh Coding:...-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900