Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Date Problem Cant Seem To Work


Reply
 
Thread Tools Display Modes
  #1  
Old 10-24-2002, 10:21 PM
blade2009
Guest
 
Posts: n/a
Angry Date Problem Cant Seem To Work


i have this most craziest problem

date formations are in DD/mm/yyyy

now: i cahnged the field worklog_date format to dd/mm/yyyy in access and it shows formation in access as dd/mm/yyyy. Well yeppie cool.


but i am displaying this result in flexgrid how come flexgrid doesnt showthe work_date as in format dd/mm/yyyy???????

even when i asked the flexgrid to only open the table
e.g

set mainrst=indb.openrecordset("worklog")
==========
insane and stupid.

at first the sys format was changed to dd/mm/yyyy
for my query in one form


then i got user entering a date in texfield in format dd/mm/yyyy
when i view the result the flex shows the users textbox input as mm/dd/yyyy
this is killing me


can someone please help
Reply With Quote
  #2  
Old 10-25-2002, 12:41 AM
couch612's Avatar
couch612 couch612 is offline
Senior Contributor
 
Join Date: Sep 2002
Location: Brisbane, Australia
Posts: 1,209
Default

hi,

I created a simple form based on a simple table with a flexgrid named grdData. The first field in the table is a date/time field. i put this in my load event and it seems to work fine for me:


Private Sub Form_Load()

Dim rs As Recordset

Set rs = CurrentDb.OpenRecordset("Table1")

grdData.Row = 1
grdData.Col = 0
grdData.Value = Format(rs![theDate], "dd/mm/yyyy")
grdData.Col = 1
grdData.Value = rs![strDate]
grdData.Col = 2
grdData.Value = rs![theNumber]

rs.Close

End Sub
__________________
Cheers,
Peter W.
Reply With Quote
  #3  
Old 10-25-2002, 02:19 AM
pradeep pradeep is offline
Contributor
 
Join Date: May 2002
Location: Andhra Pradesh, India
Posts: 484
Default

how u changed sys date format?

you have to change regional settings of your system according to your country then teset your flexgrid.
__________________
You won't win if you don't begin.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->