Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 5:40 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ]  Bookmark and Share
Author Message
 Post subject: Need Help to parse date for desision making.
PostPosted: Sat Jun 04, 2005 10:45 pm 
Offline

Joined: Sat Jun 04, 2005 10:29 pm
Posts: 0
Location: Md
I collect data from third party application using SOAP. This data consists of values and dates of associated data. I can gather the data with out any problem. Based on the date gathered, i need to decide which excel spread sheet to use, IE jan, feb etc... and which column to use for the many data items. All this revolves around the date from the third party that is gathered.

Can someone show me how to parse out the month, or day to a new variable(s) so i can use them to make these decisions?

_________________
Thanks, Greg


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 06, 2005 3:11 am 
Offline

Joined: Fri May 13, 2005 9:49 am
Posts: 9
well im not sure if the date that your dealing with is the same, but if you want the month/day/whatever of NOW or a date in the same format, just go
Month(Now) or Day(Now) or Minute(Now)...exc, if you just do Now you'll get the full date and you can use that in your program to see if how the dates your dealing with and the Now date is in the same format.

Hope that helps.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 06, 2005 3:21 am 
Offline

Joined: Fri May 13, 2005 9:49 am
Posts: 9
A Quick Example to display the current...umm...howabout Hour and Minute time

Private Sub Timer1_Timer()
If Hour(Now) <= 12 Then
lblTime.Caption = Hour(Now) & ":" & Minute(Now) & " AM"
ElseIf Hour(Now) > 12 Then
lblTime.Caption = (Hour(Now) - 12) & ":" & Minute(Now) & " PM"
End If
End Sub


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 07, 2005 9:44 am 
Offline
100+ Club
User avatar

Joined: Fri Apr 08, 2005 8:32 am
Posts: 182
Location: India
Welcome to DEVPPL gregbems

it would be better if you could say in what format do you get the date there are functions in vb to add dates i.e you could add certain no of days and calculate what the resulting day and month would be

this link would help you a lot in understanding about the inbuilt functions not only date but everything

http://www.int.gu.edu.au/courses/3008in ... Syntax.htm

if you want to read only about dates this is it

http://www.int.gu.edu.au/courses/3008in ... #Heading31

you will get everything about dates here

_________________
--------DAFUNKYMUNKY--------
::THE::NECESSARY::[D]EVIL::
....errr i mean munky....


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley